Expand description
Backend-neutral primary database identity, configuration, and registry. Vendor-specific database drivers live in their respective adapter crates.
Re-exports§
pub use backend::BackendCapabilities;pub use backend::BackendConnection;pub use backend::BackendError;pub use backend::BackendKind;pub use backend::DbBackendConfig;pub use backend::PrimaryBackend;pub use backend_registry::BackendRegistry;
Modules§
- account_
tokens - Atomic password-reset completion over the configured database adapter.
- backend
- backend_
registry - contract
- Bounded loading and validation for one app-owned logical database contract.
- conversion
- Lossless value conversion for guarded logical field migrations. Adapters use the same preflight before changing any physical representation.
- document
- Atomic document operations for apps that declare document-shaped persistence.
- effects
- Transaction-local outbox composition without selecting a database vendor.
- historical
- Bounded historical JSON adoption through the same logical field contract.
- index_
values - Shared value semantics for materialized expression index keys.
- integration
- Bounded integration delivery operations over the configured backend.
- operations
- Logical data operations shared by apps and primary-backend implementations. App code supplies validated entity and field names; an adapter owns physical queries, connections, migrations, and durable transaction semantics.
- payment
- Bounded payment settings reads through the configured app database.
- queue
- Bounded queue readiness reads over the configured database adapter.
- relational
- Parameterized SQL lowering shared by the three relational backend adapters. Connection, isolation, error mapping, and migration execution remain with the SQLite, PostgreSQL, and MySQL adapter crates.
- seed_
from - Bounded, owner-neutral missing-record adoption shared by every adapter.
- sequence
- Scoped counters whose allocation commits with the consuming app mutation.
- snapshot
- Portable validation and ordering for atomic operator snapshot restoration.
- state_
delta - Scoped writes for legacy worker state changes during logical adoption.
- webhook
- Durable webhook receipt writes through the configured database adapter.
Structs§
Functions§
- backend_
kind - Resolves the typed primary backend kind from one runtime config value.
- build_
default_ primary_ backend_ registry - Builds default primary backend registry.
- default_
primary_ backend_ registry - Returns the immutable default primary-backend registry for shipped backends.
- resolve_
primary_ backend - Resolves one shipped primary backend through the shared immutable registry.
- valid_
env_ 🔒var_ name - Performs valid env var name.
- validate_
backend_ config - Validates one shared backend config before backend-specific connection setup.