//! Migration framework. The baseline SQL file under `migrations/` is
//! embedded into the binary via `sqlx::migrate!()`; running migrations is
//! idempotent because sqlx tracks applied versions in `_sqlx_migrations`.
use Migrator;
use SqlitePool;
use crateStoreError;
/// Highest schema version shipped by this build.
pub const CURRENT_SCHEMA_VERSION: i64 = 1;
pub static MIGRATOR: Migrator = migrate!;
/// Maximum applied migration version. Returns 0 if no migrations have
/// been applied yet (which would only happen if `Store::open` did not
/// run `MIGRATOR.run`, i.e. a misconfiguration).
pub async