Skip to main content

Crate pg_proto

Crate pg_proto 

Source
Expand description

Session-typed PostgreSQL wire protocol primitives.

Modules§

auth
Authentication typestates, including the recursive SASL sub-session.
cancel
Session-external cancellation-key translation for proxies.
cleanliness
Extensible evidence for application-owned connection reuse policy.
codec
Direction-parameterised framing and lossless message decoding.
credentials
Credential transforms shared by client and proxy-side authentication policy.
demux
Filtering projection from backend messages to the typed session stream.
erased
Exact runtime erasure for storage and forwarding boundaries.
grammar
Generated PostgreSQL grammars and differential-test runtime FSMs.
integrations
Integration boundaries for platform-specific GSSAPI, Kerberos, and SSPI engines.
intermediary
Policy-neutral composition of independent downstream and upstream sessions.
pipeline
Bounded, payload-free orchestration for proxy request pipelines.
pre_startup
PostgreSQL’s untagged pre-startup protocol.
replication
Typed payloads carried inside walsender CopyData messages.
resources
Branded prepared-statement and portal resources with proxy name rewriting.
scram
Server-side SCRAM-SHA-256 and SCRAM-SHA-256-PLUS verification.
server_auth
Server-role authentication typestates for proxy-side client termination.
server_session
Server-role query sessions used when a proxy terminates the client protocol.
session
Core query, COPY, and error-draining typestates.
startup
Untagged startup messages and protocol-version negotiation.
tls
TLS transport upgrades and RFC 5929 channel binding.
transport
Buffered, cancellation-safe outbound transport.

Structs§

Conn
A connection whose legal operations are selected by Phase and Cleanliness.

Enums§

Dirty
The connection has state which prevents unconditional pool release.
Pristine
The connection has no known session-local changes.