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

Method Scan

sqlchain/adapter/storage/storage.go:59–75  ·  view source on GitHub ↗
(src interface{})

Source from the content-addressed store, hash-verified

57}
58
59func (s *rowScanner) Scan(src interface{}) error {
60 if s.fieldCnt <= s.column {
61 // read complete
62 return io.EOF
63 }
64
65 // convert to string if data type is []byte
66 if srcInBytes, ok := src.([]byte); ok {
67 s.fields[s.column] = string(srcInBytes)
68 } else {
69 s.fields[s.column] = src
70 }
71
72 s.column++
73
74 return nil
75}
76
77func (s *rowScanner) GetRow() []interface{} {
78 return s.fields

Callers 12

TestFullProcessFunction · 0.45
readAllRowsFunction · 0.45
NewServiceFunction · 0.45
getAckMethod · 0.45
getRequestMethod · 0.45
getResponseHeaderMethod · 0.45
getHighestBlockMethod · 0.45
getHighestBlockV2Method · 0.45
getBlockByHeightMethod · 0.45
getBlockByCountMethod · 0.45
getBlockMethod · 0.45
TestFullProcessFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestFullProcessFunction · 0.36
TestFullProcessFunction · 0.36