Expand description
SQLx integration for Alibi.
SqlxStore persists every auth table through an application’s own
SQLite or PostgreSQL pool. Application-owned models derive
sqlx::FromRow and AuthEntity.
Re-exports§
pub use organization_models::OrganizationModels;pub use hooks::SqlxBackend;pub use hooks::SqlxHookContext;pub use json_metadata::JsonMetadata;pub use model::ActiveRow;pub use model::ActiveValue;pub use model::ColumnDef;pub use model::SqlxModel;pub use pool::Engine;pub use pool::SqlxPool;pub use pool::SqlxRow;pub use pool::SqlxTransaction;pub use pool::SqlxTransactionGuard;pub use rate_limit::SqlxRateLimitStorage;pub use schema::SqlxAccountModel;pub use schema::SqlxSessionModel;pub use schema::SqlxUserModel;pub use schema::SqlxVerificationModel;pub use store::SqlxStore;pub use value::ColumnKind;pub use value::SqlValue;pub use value::SqlxValue;pub use sqlx;
Modules§
- additional_
fields - Raw configured values staged on actual model columns.
- hooks
SQLxbindings for the shared database lifecycle hooks.- json_
metadata - JSON metadata storage for bundled and application-owned
SQLxmodels. - model
- Column-level write staging for
SQLxmodels. - organization_
models - Application-owned organization plugin tables. Models derive
crate::SqlxModeland use Rust names for plugin fields, withsqlx(rename)for physical names. - pool
- Engine-tagged
SQLxpools and transactions, and statement execution. - rate_
limit - Atomic rolling rate limits persisted independently of an application’s auth schema.
- schema
SQLxmodel bindings for Alibi schemas.- store
SQLx-backed persistence implementation for built-in auth tables.- value
- Typed SQL values bound to
SQLxarguments.
Enums§
- Hook
Control - Control flow returned by database
before_*hooks.
Traits§
- Database
Hooks - Lifecycle hooks for intercepting auth writes.
Functions§
Derive Macros§
- Auth
Entity - Derive macro that generates
Auth*trait impls andSqlx*Modelimpls for aSQLxmodel. - Sqlx
Model - Derive macro that implements
SqlxModelfor a table-backed row type.