fn table_row_count_if_exists(
conn: &Connection,
table: &str,
) -> Result<i64, StoreError>Expand description
SELECT COUNT(*) FROM <table>, or 0 if the table doesn’t exist at
all — distinct from a genuinely empty table, which also counts as 0
here on purpose (both mean “no source rows to backfill”).