MCPcopy
hub / github.com/jackc/pgx / Next

Method Next

rows.go:220–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218}
219
220func (rows *baseRows) Next() bool {
221 if rows.closed {
222 return false
223 }
224
225 if rows.resultReader.NextRow() {
226 rows.rowCount++
227 rows.values = rows.resultReader.Values()
228 return true
229 } else {
230 rows.Close()
231 return false
232 }
233}
234
235func (rows *baseRows) Scan(dest ...any) error {
236 m := rows.typeMap

Callers

nothing calls this directly

Calls 3

CloseMethod · 0.95
NextRowMethod · 0.80
ValuesMethod · 0.65

Tested by

no test coverage detected