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

Method nextQueryAndArgs

batch.go:268–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266}
267
268func (br *batchResults) nextQueryAndArgs() (query string, args []any, ok bool) {
269 if br.b != nil && br.qqIdx < len(br.b.QueuedQueries) {
270 bi := br.b.QueuedQueries[br.qqIdx]
271 query = bi.SQL
272 args = bi.Arguments
273 ok = true
274 br.qqIdx++
275 }
276 return query, args, ok
277}
278
279type pipelineBatchResults struct {
280 ctx context.Context

Callers 2

ExecMethod · 0.95
QueryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected