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

Function newRowScanner

sqlchain/adapter/storage/storage.go:44–57  ·  view source on GitHub ↗
(fieldCnt int)

Source from the content-addressed store, hash-verified

42}
43
44func newRowScanner(fieldCnt int) (s *rowScanner) {
45 s = &rowScanner{
46 fieldCnt: fieldCnt,
47 column: 0,
48 fields: make([]interface{}, fieldCnt),
49 scanArgs: make([]interface{}, fieldCnt),
50 }
51
52 for i := 0; i != fieldCnt; i++ {
53 s.scanArgs[i] = s
54 }
55
56 return
57}
58
59func (s *rowScanner) Scan(src interface{}) error {
60 if s.fieldCnt <= s.column {

Callers 1

readAllRowsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected