Expand description
How a Postgres value becomes JSON and a JSON parameter becomes a Postgres value: one codec for the platform’s host functions, its data routes and the native test host, so the three cannot disagree.
Re-exports§
pub use bind::bind;pub use bind::coerce;pub use bind::Bound;pub use error::from_pg;pub use error::server_message;pub use numeric::NumericError;pub use numeric::PgNumeric;pub use row_json::base_type;pub use row_json::check_columns_v2;pub use row_json::column_to_json;pub use row_json::column_to_json_v2;pub use row_json::PgInterval;
Modules§
- bind
- Prepare-then-coerce binding: Postgres reports each parameter’s type when the statement is prepared, and every tagged guest parameter is converted to exactly that type, losslessly, or refused with a message naming it.
- error
- A Postgres failure as a guest receives it: the structured
DbErrorofdb_call, and the text of the legacy calls. - numeric
- Exact Postgres
NUMERICvalues: decimal text in, the binary wire format (base-10000 digits, weight, sign, display scale) out, and back, withNaNand the infinities. No precision is lost in either direction. - pooler
- What sits between a pool and Postgres, and the guest statements a transaction pooler cannot carry.
- render
- A statement’s rows as a guest receives them.
- roles
- What the platform hands a service’s database role, read the same by its provisioning and by the native test host.
- row_
json - session
- The settings statements run under on a session: the service’s schema first on the search path, the statement’s time bound, and the role it runs as. Whatever holds the session sends these texts, so the platform’s sessions, its migration executor and the native test host set up a session alike.
- statement
- What a guest’s statement is, judged by its leading keywords: whatever runs a guest’s SQL decides the same way how it may run.
- tx
- The rules of an interactive transaction, as a pure state machine: what an open or failed transaction admits, where it stands afterwards, and which savepoints it holds. Whatever holds the connection applies them.