Skip to main content

Crate persistant_sqlx

Crate persistant_sqlx 

Source
Expand description

PersistAnt’s relational driver over sqlx (PostgreSQL first).

PgBackend implements persistant_relational::RelationalBackend. The concrete sqlx::PgPool is available through PgBackend::pool, so a program that wants compile-time-checked sqlx::query! keeps it (D1, C+): this crate does not hide sqlx.

Failures are classified from the server’s SQLSTATE into persistant_relational::RelError.

Structs§

PgBackend
A PostgreSQL database behind an sqlx pool.
PgTx
A PostgreSQL transaction.