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

Function buildBlockInfos

cmd/cql-fuse/sql.go:139–153  ·  view source on GitHub ↗
(rows *sql.Rows)

Source from the content-addressed store, hash-verified

137}
138
139func buildBlockInfos(rows *sql.Rows) ([]blockInfo, error) {
140 var results []blockInfo
141 for rows.Next() {
142 b := blockInfo{}
143 if err := rows.Scan(&b.block, &b.data); err != nil {
144 return nil, err
145 }
146 results = append(results, b)
147 }
148 if err := rows.Err(); err != nil {
149 return nil, err
150 }
151
152 return results, nil
153}

Callers 2

getBlocksFunction · 0.85
getBlocksBetweenFunction · 0.85

Calls 2

NextMethod · 0.45
ScanMethod · 0.45

Tested by

no test coverage detected