Expand description
SQLite schema and SQLx boundary for Dovecote.
SQLite’s single-writer model is a distinct support contract. Write and
claim transactions therefore use explicit BEGIN IMMEDIATE; busy errors
are retried only by the bounded policy configured on SqliteDovecote.
Structs§
- Admin
Dovecote - Explicit administrative
SQLitehandle. - Busy
Config - Bounded busy handling for
SQLite’s single-writer lock. - Crate
Version - Numeric crate version used to evaluate migration compatibility.
- Migration
- One immutable, versioned
SQLitemigration artifact. - Migration
Compatibility - A checked crate-version range for a migration artifact.
- Migration
Compatibility Error - Error returned when a migration compatibility range is inverted.
- Snapshot
Pager - A finite pager retaining one
SQLiteread transaction. The explicit marker makes accidental movement across unrelated executors a compile-time error. - Sqlite
Dovecote SQLiteadapter for Dovecote’s durable event and delivery schema.- Tenant
Dovecote - Ordinary
SQLiteoperations restricted to one validated tenant.
Enums§
- Claim
Error - Errors returned while selecting and claiming a batch of events.
- Enqueue
Error - Errors returned while enqueueing an event.
- Finalize
Error - Errors returned by the migration-only delivery finalizer.
- Import
Error - Errors returned by the migration-only importer.
- Mutation
Error - Errors returned by claim-token-fenced delivery mutations.
- Page
Error - Errors returned by live and snapshot paging.
- Schema
Error - Errors returned while checking the installed schema.
- Transient
Kind - Errors that can be retried by the adapter’s bounded busy policy.
Constants§
- DEFAULT_
BUSY_ RETRIES - Default number of whole-operation retries after each configured busy timeout.
- DEFAULT_
BUSY_ TIMEOUT - Default per-connection wait before returning
SQLITE_BUSY. - LEGACY_
MIGRATION - The immutable schema version 1 artifact for pre-tenant deployments.
- MIGRATIONS
- All migration artifacts shipped by this adapter, in version order.
- SCHEMA_
VERSION - Schema version implemented by this adapter.
- V1_
TENANT_ ACTIVATE_ SQL - SQL that validates backfill and activates tenant constraints.
- V1_
TENANT_ PREPARE_ SQL - SQL that adds nullable tenant columns to a version 1 deployment.
Functions§
- begin_
enqueue - Alias for
begin_writefor callers about to enqueue an event. - begin_
write - Begins a caller write transaction using the default busy policy. The
returned transaction is safe to pass to
TenantDovecote::enqueue. - check_
schema - Verifies the exact v2 table shape, constraints, indexes, and foreign key of the installed schema. It never applies a migration.