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§
- Connect
Options - Settings for
PgBackend::connect_with. - Migrate
Report - What a successful run did.
- Migration
- One migration: a version, a description and the SQL text. The text is hashed; changing a migration that has been applied is an error, never a silent re-run.
- PgBackend
- A PostgreSQL database behind an sqlx pool.
- PgTx
- A PostgreSQL transaction.
Enums§
- Migrate
Error - Why a migration run stopped.
- TlsPolicy
- How a connection is secured. A typed setting, not a
sslmode=string someone has to remember.