Module codec

Source
Expand description

Encoding/decoding of messages in pgwire. See “Frontend/Backend Protocol: Message Formats” in the PostgreSQL reference for the specification.

See the crate docs for higher level concerns.

Structs§

Cursor
Decodes data within pgwire messages.

Enums§

CodecError
DecodeState

Constants§

ACCEPT_SSL_ENCRYPTION
MAX_REQUEST_SIZE
Maximum allowed size for a request.
REJECT_ENCRYPTION

Traits§

Pgbuf

Functions§

decode_startup
input_err
Constructs an error indicating that the client has violated the pgwire protocol.
parse_frame_len