Skip to main content

Crate gatekeep_sqlx

Crate gatekeep_sqlx 

Source
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§

NoGradeProjection
Projection that rejects grade lowering.
OrdinalProjection
Outcome projection backed by SqlOutcome.
PostgresBackend
Postgres backend marker.
SqlxFragment
Trusted SQL plus ordered bind values for one SQLx backend.
SqlxLowerer
SQLx lowerer for gatekeep residual policies.

Enums§

SqlxDriver
Supported SQLx database driver.
SqlxDriverError
Database driver configuration error.
SqlxValue
Scalar value carried by a lowered SQL fragment.

Traits§

GatekeepSqlxBackend
SQLx backend supported by gatekeep lowering.
OutcomeProjection
Projection strategy for turning outcomes into SQL fragments.
PgFactPredicates
Maps a residual fact to a trusted Postgres predicate over the candidate row.
SqlOutcome
Maps a policy outcome to a total-order SQL ordinal.
SqlxFactPredicates
Maps a residual fact to a trusted predicate over the candidate row.

Functions§

infer_enabled_driver_from_url
Infers the SQLx driver from a database URL or SQLx-style SQLite memory 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.