Expand description
Pull-based, bounded, sans-I/O PostgreSQL client.
Feed bytes with receive, pull next_event, write output, then acknowledge
only transmitted bytes with consume_output. Events borrow reusable storage.
The host owns sockets, TLS, entropy, time and result materialization.
Modules§
- pool
- Sans-I/O pool: the host executes Connect/Close requests, then reports their completion. Checkout events are FIFO; idle reuse is LIFO, as in pg/mysql2.
- types
- Common PostgreSQL codecs.
Int8andNumericremain exact: pg’s default JS parsers use strings. JSON parsing and local-time JS Date construction belong to the host; neither reads a clock here.
Structs§
- Channel
Binding - The channel binding configuration for a SCRAM authentication exchange.
- Config
- Connection
- Extended
Query - Parameters of one extended-protocol operation. An empty name is uncached.
- Field
- Fields
- Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration. - Parameter
- A parameter is already encoded by the host or
types; 0=text, 1=binary. - Row
- Borrowed, already validated PostgreSQL row. Iteration never allocates.
- Scram
Sha256 - A type which handles the client side of the SCRAM-SHA-256/SCRAM-SHA-256-PLUS authentication process.
- Server
Error - ErrorResponse and NoticeResponse retain every field, including future fields.