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

Method QueryRow

batch.go:38–43  ·  batch.go::QueuedQuery.QueryRow

Query sets fn to be called when the response to qq is received.

(fn func(row Row) error)

Source from the content-addressed store, hash-verified

36
37// Query sets fn to be called when the response to qq is received.
38func (qq *QueuedQuery) QueryRow(fn func(row Row) error) {
39 qq.Fn = func(br BatchResults) error {
40 row := br.QueryRow()
41 return fn(row)
42 }
43}
44
45// Exec sets fn to be called when the response to qq is received.
46//

Callers

nothing calls this directly

Calls 1

QueryRowMethod · 0.65

Tested by

no test coverage detected