MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Next

Method Next

client/rows.go:53–66  ·  view source on GitHub ↗

Next implements driver.Rows.Next method.

(dest []driver.Value)

Source from the content-addressed store, hash-verified

51
52// Next implements driver.Rows.Next method.
53func (r *rows) Next(dest []driver.Value) error {
54 if len(r.data) == 0 {
55 return io.EOF
56 }
57
58 for i, d := range r.data[0].Values {
59 dest[i] = d
60 }
61
62 // unshift data
63 r.data = r.data[1:]
64
65 return nil
66}
67
68// ColumnTypeDatabaseTypeName implements driver.RowsColumnTypeDatabaseTypeName.ColumnTypeDatabaseTypeName method.
69func (r *rows) ColumnTypeDatabaseTypeName(index int) string {

Callers 15

loadTxPoolFunction · 0.45
loadBlocksFunction · 0.45
loadAndCacheAccountsFunction · 0.45
loadAndCacheProvidersFunction · 0.45
TestConnFunction · 0.45
TestRowsStructureFunction · 0.45
mainFunction · 0.45
GetAllNodeIDFunction · 0.45
NewChainWithContextFunction · 0.45
readAllRowsFunction · 0.45

Calls

no outgoing calls

Tested by 11

TestConnFunction · 0.36
TestRowsStructureFunction · 0.36
BenchmarkRuntimeFunction · 0.36
BenchmarkMuxParallelFunction · 0.36
BenchmarkStorageFunction · 0.36
benchCallerFunction · 0.36
benchPCallerFunction · 0.36