drop_expired_partitions

Function drop_expired_partitions 

Source
pub fn drop_expired_partitions(
    conn: &Connection,
    raw_keep_ms: i64,
    now_ms: i64,
) -> Result<usize>
Expand description

Drop partition tables older than the raw retention period. Returns the number of partitions dropped. Each drop is O(1) (SQLite frees the table’s pages to the file’s free list; incremental vacuum reclaims them).