Skip to main content

Module codec

Module codec 

Source
Expand description

Direction-parameterised framing and lossless message decoding.

Structs§

Bind
Structured Bind message.
Close
Structured Close message.
CopyResponse
Format metadata which begins a COPY sub-protocol.
DataRow
One result row retaining raw text or binary column values.
Describe
Structured Describe message.
DiagnosticField
One tagged PostgreSQL diagnostic field.
DiagnosticResponse
Ordered diagnostic fields from an error or notice response.
Execute
Structured Execute message.
FieldDescription
Metadata for one result column.
Frame
A validated PostgreSQL tagged frame, including its tag but not its length.
FunctionCall
Structured legacy FunctionCall message.
NegotiateProtocolVersion
Backend response negotiating a requested protocol minor version and options.
Parse
Structured Parse message.
PgCodec
A PostgreSQL codec which cannot confuse frontend and backend tag alphabets.
RowDescription
Backend row metadata retained in reconstructable form.

Enums§

Authentication
Backend authentication request or continuation message.
Backend
Messages sent by a PostgreSQL backend.
BackendMessage
Messages sent by a PostgreSQL backend.
DescribeTarget
Namespace selected by Describe and Close messages.
Frontend
Messages sent by a PostgreSQL frontend.
FrontendMessage
Frontend messages whose contents a rewriting proxy must retain structurally.
TransactionStatus
Transaction state reported by ReadyForQuery.

Constants§

DEFAULT_MAX_FRAME_LEN
Default total tagged-frame limit, including tag and length.

Traits§

Direction
Decoder direction. The same byte tag has different meanings in each direction.