Module protocol

Module protocol 

Source
Expand description

PostgreSQL wire protocol implementation.

This module contains the low-level protocol encoding and decoding.

§Structure

  • backend: Server → Client messages (parsing)
  • frontend: Client → Server messages (encoding)
  • copy: COPY protocol messages (shared between frontend and backend)
  • codec: Low-level encoding/decoding primitives
  • types: Common protocol types (FormatCode, Oid, TransactionStatus)

Re-exports§

pub use backend::RawMessage;
pub use copy::CopyData;
pub use copy::CopyDone;
pub use types::FormatCode;
pub use types::Oid;
pub use types::TransactionStatus;

Modules§

backend
PostgreSQL backend (server → client) messages.
codec
PostgreSQL wire protocol encoding and decoding primitives.
copy
COPY protocol messages shared between frontend and backend.
frontend
PostgreSQL frontend (client → server) messages.
types
Common PostgreSQL wire protocol types.