Expand description
PostgreSQL wire protocol: message encoding/decoding, type OIDs, and the authentication state machine.
This crate is intentionally free of any async runtime. It operates on
[bytes::BytesMut] buffers and is shared between the postgresql client
and the compile-time query macros, so both understand the protocol from a
single implementation.
Re-exports§
pub use backend::BackendMessage;pub use backend::DEFAULT_MAX_MESSAGE_LEN;pub use backend::FieldDescription;pub use backend::decode;pub use backend::decode_with_limit;pub use error::DbError;pub use error::Error;pub use oid::Format;pub use oid::Oid;pub use oid::PgType;pub use scram::ScramClient;
Modules§
- backend
- Backend (server → client) message decoding.
- error
- Errors produced while encoding or decoding protocol messages.
- frontend
- Frontend (client → server) message encoding.
- oid
- PostgreSQL type object identifiers and the binary/text format marker.
- scram
- SCRAM-SHA-256 client (RFC 5802 / RFC 7677), used for PostgreSQL password authentication.