Expand description
SQLx lowering for gatekeep residual policies.
This crate lowers a gatekeep::ResidualPolicy into trusted SQL fragments
that can be appended to a sqlx::QueryBuilder.
Structs§
- NoGrade
Projection - Projection that rejects grade lowering.
- Ordinal
Projection - Outcome projection backed by
SqlOutcome. - Postgres
Backend - Postgres backend marker.
- Sqlx
Fragment - Trusted SQL plus ordered bind values for one
SQLxbackend. - Sqlx
Lowerer SQLxlowerer for gatekeep residual policies.
Enums§
- Sqlx
Driver - Supported
SQLxdatabase driver. - Sqlx
Driver Error - Database driver configuration error.
- Sqlx
Value - Scalar value carried by a lowered SQL fragment.
Traits§
- Gatekeep
Sqlx Backend SQLxbackend supported by gatekeep lowering.- Outcome
Projection - Projection strategy for turning outcomes into SQL fragments.
- PgFact
Predicates - Maps a residual fact to a trusted Postgres predicate over the candidate row.
- SqlOutcome
- Maps a policy outcome to a total-order SQL ordinal.
- Sqlx
Fact Predicates - Maps a residual fact to a trusted predicate over the candidate row.
Functions§
- infer_
enabled_ driver_ from_ url - Infers the
SQLxdriver from a database URL orSQLx-styleSQLitememory URL. - validate_
database_ url_ for_ backend - Validates that a database URL matches a selected backend.
Type Aliases§
- PgFragment
- Trusted Postgres SQL plus ordered bind values.
- PgLowerer
- Postgres lowerer for gatekeep residual policies.
- PgValue
- Postgres scalar value carried by a lowered SQL fragment.