MCPcopy
hub / github.com/gocraft/dbr / Iterator

Interface Iterator

iterator.go:11–16  ·  view source on GitHub ↗

Iterator is an interface to iterate over the result of a sql query and scan each row one at a time instead of getting all into one slice. The principe is similar to the standard sql.Rows type.

Source from the content-addressed store, hash-verified

9// and scan each row one at a time instead of getting all into one slice.
10// The principe is similar to the standard sql.Rows type.
11type Iterator interface {
12 Next() bool
13 Scan(interface{}) error
14 Close() error
15 Err() error
16}
17
18// recordMeta holds target struct's reflect metadata cache
19type recordMeta struct {

Callers 21

LoadFunction · 0.65
TestSelectRowsFunction · 0.65
ExampleIteratorFunction · 0.65
NextMethod · 0.65
UnmarshalJSONMethod · 0.65
UnmarshalJSONMethod · 0.65
UnmarshalJSONMethod · 0.65
UnmarshalJSONMethod · 0.65
NewNullInt64Function · 0.65
NewNullFloat64Function · 0.65
NewNullStringFunction · 0.65
NewNullTimeFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…