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

Method Close

batch.go:115–115  ·  view source on GitHub ↗

Close closes the batch operation. All unread results are read and any callback functions registered with [QueuedQuery.Query], [QueuedQuery.QueryRow], or [QueuedQuery.Exec] will be called. If a callback function returns an error or the batch encounters an error subsequent callback functions will not

()

Source from the content-addressed store, hash-verified

113 // Close is safe to call multiple times. If it returns an error subsequent calls will return the same error. Callback
114 // functions will not be rerun.
115 Close() error
116}
117
118type batchResults struct {

Callers 6

QueryMethod · 0.65
ExecMethod · 0.65
QueryMethod · 0.65
CloseMethod · 0.65
ExecMethod · 0.65
CloseMethod · 0.65

Implementers 7

Connconn.go
batchResultsbatch.go
Poolpgxpool/pool.go
errBatchResultspgxpool/batch_results.go
poolBatchResultspgxpool/batch_results.go

Calls

no outgoing calls

Tested by

no test coverage detected