Skip to main content

Module driver

Module driver 

Source
Expand description

Re-export bsql_driver_postgres types used by generated code. Users do not need to depend on bsql-driver directly.

Structs§

Arena
A bump allocator for row data.
Config
Implements Drop to zeroize the password field, minimizing the window where plaintext credentials live in memory.
PgDataRow
A temporary view of a single PostgreSQL DataRow message.
QueryResult
Collected result of a query: all rows’ column offsets plus metadata.
Row
A view into a single result row, borrowing data from the arena.

Traits§

Encode
Encode a Rust value into PostgreSQL binary format.

Functions§

acquire_arena
Acquire an arena from the thread-local pool, or create a new one.
decode_array_bool
Decode a PG binary array of booleans.
decode_array_bytea
Decode a PG binary array of bytea values.
decode_array_f32
Decode a PG binary array of f32.
decode_array_f64
Decode a PG binary array of f64.
decode_array_i16
Decode a PG binary array of i16.
decode_array_i32
Decode a PG binary array of i32.
decode_array_i64
Decode a PG binary array of i64.
decode_array_str
Decode a PG binary array of text/varchar strings.
decode_str
Decode a UTF-8 string from binary format (variable length).
hash_sql
Compute a rapidhash of a SQL string.
release_arena
Return an arena to the thread-local pool for reuse.