Skip to main content

Crate drizzle_postgres

Crate drizzle_postgres 

Source
Expand description

PostgreSQL support for drizzle-rs: values, query builders, PostgreSQL-only operators and the traits the #[PostgresTable] family of macros implement.

Most code uses this crate through the drizzle crate, which re-exports it as drizzle::postgres and adds the database drivers. On its own, this crate builds SQL without running it.

Re-exports§

pub use transaction::AccessMode;
pub use transaction::IsolationLevel;
pub use transaction::TransactionConfig;

Modules§

attrs
Names accepted inside #[PostgresTable(...)], #[column(...)], #[PostgresView(...)], #[PostgresIndex(...)] and #[PostgresPolicy(...)].
builder
Query builders for PostgreSQL statements.
common
Shared PostgreSQL types: schema object kinds, a number helper, the legacy isolation-level enum, and the join types re-exported from core.
expr
PostgreSQL-only operators: arrays, JSON and JSONB, ILIKE, and POSIX regular expressions.
helpers
SQL fragment builders used by the PostgreSQL query builders.
traits
Traits for PostgreSQL tables, columns, enums and custom column types, and for decoding values and driver rows.
transaction
Driver-neutral PostgreSQL transaction options (TransactionConfig).
types
SQL type markers for PostgreSQL (Int4, Text, Jsonb, …), from drizzle_types.
values
Values bound to and read from PostgreSQL queries.

Structs§

ParamBind
A value to bind to the placeholder called name.