minco-sqlx-sqlite
SQLx SQLite runtime support for Minco.
File-backed databases enable foreign keys and WAL. In-memory databases require exactly one pooled connection so independent connections do not accidentally observe separate databases.
use ;
# async
Applications that compose independently versioned migration sets must give each set its own history table:
# use SqlitePool;
# async
The history-table name is restricted to a plain ASCII identifier. Reusing
SQLx's default _sqlx_migrations table for unrelated migration directories
causes version/checksum collisions.
The framework lifecycle API accepts a validated minco_db::MigrationSet and
the same configuration used to open the pool:
# use MigrationSet;
# use ;
# use Path;
# async
Execution requires file-backed SQLite. The adapter revalidates backend, SQL identifiers, project containment and SQLx checksums, then holds an adjacent operating-system file lock for the whole migration run.
Validated minco_db::SeedPlan values retain SQLite-specific SQL. A required
plan uses one transaction and source digests are rechecked before mutation.
verify_seed_plan uses a connection-local SQLite read-only guard and closes
that guarded connection instead of returning its state to the pool.