Skip to main content

Module session

Module session 

Source
Expand description

Core query, COPY, and error-draining typestates.

Enums§

AwaitingReady
Command results are complete and ReadyForQuery is required.
AwaitingReadyTransition
Backend branch available after a result completes.
BoundBuilding
An extended-query pipeline contains a bound, executable portal.
Building
An extended-query pipeline is being built but has no bound portal yet.
CopyBoth
Both peers may stream COPY data.
CopyBothClientDone
The client half of a COPY BOTH session is closed.
CopyBothClientDoneReceive
Backend branch after the client closes its COPY BOTH half.
CopyBothReceive
Backend branch while both COPY directions remain open.
CopyBothServerDone
The backend half of a COPY BOTH session is closed.
CopyIn
The client may stream COPY data to the backend.
CopyInTransition
Asynchronous backend branch available while sending COPY IN data.
CopyOut
The backend may stream COPY data to the client.
CopyOutTransition
Backend branch during COPY OUT.
Draining
An errored command is being drained until ReadyForQuery.
DrainingTransition
Backend branch while discarding messages after an error.
FunctionCallTransition
Backend branch available for the legacy function-call protocol.
FunctionCalling
A legacy function call is awaiting its result.
ReadyState
Readiness classified by pooling cleanliness evidence.
ReplicationClientDoneReceive
Typed walsender branch after the standby closes its sending half.
ReplicationReceive
Typed walsender branch while both replication directions remain open.
ResetComplete
Reset command completion was observed and readiness is required.
ResetCompleteTransition
Backend branch after reset command completion.
Resetting
A pool-reset query is executing on a dirty connection.
ResettingTransition
Backend branch while a reset command is executing.
SimpleQuery
A simple-query command is awaiting backend results and readiness.
SimpleTransition
Backend branch available while a simple query is active.

Type Aliases§

ErrorResponse
Structured backend error used by session transitions.
Fallible
A successful transition or a backend error that enters Draining.
ReplicationClientDoneProjection
Replication projection after client half-close, preserving decode failures.
ReplicationProjection
Replication projection preserving the connection when decoding fails.