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 Postgres SQL fragments that can be appended to a sqlx::QueryBuilder.

Structs§

NoGradeProjection
Projection that rejects grade lowering.
OrdinalProjection
Outcome projection backed by SqlOutcome.
PgFragment
Trusted Postgres SQL plus ordered bind values.
PgLowerer
Postgres lowerer for gatekeep residual policies.

Enums§

PgValue
Postgres scalar value carried by a lowered SQL fragment.

Traits§

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.