Skip to main content

reap_stale_test_databases

Function reap_stale_test_databases 

Source
pub async fn reap_stale_test_databases(
    admin_pool: &PgPool,
    prefix: &str,
    now: SystemTime,
    max_age: Duration,
) -> Result<Vec<String>>
Expand description

Drops disconnected databases in the generated naming format that are at least max_age old, returning only names this call actually dropped.