MCPcopy Create free account
hub / github.com/apecloud/myduckserver / readNextRow

Function readNextRow

binlogreplication/binlog_replication_test.go:644–650  ·  view source on GitHub ↗
(t *testing.T, rows *sqlx.Rows)

Source from the content-addressed store, hash-verified

642}
643
644func readNextRow(t *testing.T, rows *sqlx.Rows) map[string]interface{} {
645 row := make(map[string]interface{})
646 require.True(t, rows.Next())
647 err := rows.MapScan(row)
648 require.NoError(t, err)
649 return row
650}
651
652// readAllRowsIntoMaps reads all data from |rows| and returns a slice of maps, where each key
653// in the map is the field name, and each value is the string representation of the field value.

Calls 1

NextMethod · 0.45

Tested by

no test coverage detected