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

Method Next

iterator.go:142–144  ·  view source on GitHub ↗

Next prepares the next result row for reading with the Scan method. It returns false is case of error or if there are not more data to fetch. If the end of the resultset is reached, it automaticaly free resources like the Close method.

()

Source from the content-addressed store, hash-verified

140// If the end of the resultset is reached, it automaticaly free resources like
141// the Close method.
142func (i *iteratorInternals) Next() bool {
143 return i.rows.Next()
144}
145
146// Scan fill the given struct with the current row.
147func (i *iteratorInternals) Scan(value interface{}) (err error) {

Callers

nothing calls this directly

Calls 1

NextMethod · 0.65

Tested by

no test coverage detected