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§
Constants§
- ACCEPT_
SSL_ ENCRYPTION - FORWARDED_
STARTUP_ PARAM_ ALLOWANCE - Startup budget allowed on top of
MAX_STARTUP_FRAME_SIZEfor parameters a balancer appends while forwarding. - MAX_
FORWARDED_ STARTUP_ FRAME_ SIZE - Maximum size of a startup frame accepted from a client that may be behind a balancer.
- MAX_
PREAUTH_ FRAME_ SIZE - Maximum frame size accepted from a client that has not yet authenticated.
- MAX_
REQUEST_ SIZE - Maximum allowed size for a request.
- MAX_
STARTUP_ FRAME_ SIZE - Maximum size of a startup frame accepted directly from a client.
- REJECT_
ENCRYPTION
Traits§
Functions§
- decode_
startup - Reads and decodes one startup message from the client.
- input_
err - Constructs an error indicating that the client has violated the pgwire protocol.
- parse_
frame_ len - Parses a frame length header, rejecting frames larger than
max_frame_len.