Skip to main content

table_counts

Function table_counts 

Source
pub async fn table_counts(
    pool: &SqlitePool,
    tables: &[&str],
) -> Vec<(String, Result<i64, String>)>
Expand description

Count rows in the named tables. Used by difflore doctor to snapshot store size without leaking SqlitePool to the CLI crate. Tables that don’t exist (e.g. on a fresh install before migrations) surface as Err(message) rather than aborting — the doctor report still wants to show a best-effort inventory.