Skip to main content

table_row_count_if_exists

Function table_row_count_if_exists 

Source
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”).