Postgres module

take

procedure · 1 overloadsince 0.27.0Source

The answer to a statement queued with queue or queue_execute: its rows, or the count of rows it changed. The statements queued so far get a sync point first if they have none, so the batch ends. Pendings may be taken in any order; results read on the way are kept for their own take.

take :: (p: *Pipeline, pending: Pending($R)) -> (R, Pg_Error)

The answer to a statement queued with queue or queue_execute: its rows, or the count of rows it changed. The statements queued so far get a sync point first if they have none, so the batch ends. Pendings may be taken in any order; results read on the way are kept for their own take.

Parameters

p: *Pipeline
the pipeline the statement was queued on.
pending: Pending($R)
what queue or queue_execute returned.

Returns

R

See also