kanban-persistence-sqlite 0.10.0

SQLite storage backend for the kanban project management tool
Documentation
mod archived_cards;
mod board_archival;
mod boards;
mod cards;
mod close;
mod columns;
mod command_log;
mod composite_indexes;
mod cross_backend_card_stamp_agreement;
mod cross_backend_prefix_agreement;
mod cross_backend_repair_agreement;
mod empty_prefix_stamp;
mod entities;
mod filtered_reads;
mod graph;
mod init;
mod instance_id;
mod mark_dirty;
mod metadata;
mod migration_coverage;
mod migration_v11_to_v12;
mod migration_v12_to_v13;
mod migration_v2_to_v3;
mod migration_v4_to_v5;
mod migration_v5_to_v6;
mod migration_v6_to_v7;
mod migration_v7_to_v8;
mod migration_v8_to_v9;
mod migration_v9_to_v10;
mod pre_migration_backup;
mod prefix_fk_enforcement;
mod prefix_repair;
mod transaction;
mod whole_graph_cross_backend_agreement;
mod whole_graph_migration_v12_to_v13;

/// Ordered `board_completion_columns.column_id`s for a board, straight from
/// the join table. Takes a raw pool rather than a `SqliteStore` because by
/// the time `SqliteStore::open` returns, the full migrate chain (through
/// `migrate_v8_to_v9_drop_completion_columns`) has already dropped the
/// table; callers that need to observe it mid-chain migrate a pool directly.
pub(crate) async fn completion_rows(
    pool: &sqlx::Pool<sqlx::Sqlite>,
    board_id: uuid::Uuid,
) -> Vec<String> {
    sqlx::query_scalar(
        "SELECT column_id FROM board_completion_columns WHERE board_id = ? ORDER BY position",
    )
    .bind(board_id.to_string())
    .fetch_all(pool)
    .await
    .unwrap()
}

pub(crate) fn make_rt() -> tokio::runtime::Runtime {
    tokio::runtime::Builder::new_multi_thread()
        .enable_all()
        .build()
        .unwrap()
}