MCPcopy Create free account
hub / github.com/apecloud/myduckserver / DriverRowIter

Struct DriverRowIter

pgserver/iter.go:18–24  ·  view source on GitHub ↗

DriverRowIter wraps a standard driver.Rows as a RowIter.

Source from the content-addressed store, hash-verified

16
17// DriverRowIter wraps a standard driver.Rows as a RowIter.
18type DriverRowIter struct {
19 rows driver.Rows
20 columns []string
21 schema sql.Schema
22 buffer []driver.Value // pre-allocated buffer for scanning values
23 row []any
24}
25
26func NewDriverRowIter(rows driver.Rows, schema sql.Schema) (*DriverRowIter, error) {
27 columns := rows.Columns()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected