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§
- Busy
Config - Bounded busy handling for SQLite’s single-writer lock.
- Crate
Version - Migration
- Migration
Compatibility - Migration
Compatibility Error - Snapshot
Pager - A finite pager retaining one SQLite read transaction. The explicit marker makes accidental movement across unrelated executors a compile-time error.
- Sqlite
Dovecote - SQLite adapter for Dovecote’s durable event and delivery schema.
Enums§
- Claim
Error - Enqueue
Error - Finalize
Error - Errors returned by the migration-only delivery finalizer.
- Import
Error - Errors returned by the migration-only importer.
- Mutation
Error - Page
Error - Schema
Error - 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. - MIGRATIONS
- SCHEMA_
VERSION
Functions§
- ack
- begin_
enqueue - Alias for
begin_writefor callers about to enqueue an event. - begin_
snapshot - Begins one finite read transaction and records its row-id ceiling only after the snapshot has been established.
- begin_
write - Begins a caller write transaction using the default busy policy. The
returned transaction is safe to pass to
enqueue. - check_
schema - Verifies the exact v1 table shape, constraints, indexes, and foreign key of the installed schema. It never applies a migration.
- claim
- enqueue
- Inserts an event and its delivery in the caller’s transaction.
- finalize_
pending_ delivery_ for_ migration - Finalises one canonical pending migration import in the caller-owned transaction.
- import_
for_ migration - Imports one event and a portable legacy delivery state in the supplied transaction. The caller remains responsible for commit or rollback.
- page
- Reads one independent live page. Separate calls do not share a snapshot.
- quarantine
- release
- renew
- retry