Skip to main content

db_generation_marker

Function db_generation_marker 

Source
pub async fn db_generation_marker(pool: &PgPool) -> Option<String>
Expand description

Something the database also knows, so a world installed against a different database shows up as a diagnostic. Staleness inside one restored template is invisible to it, which is what the flush on that path is for. The mock’s only read of Postgres, and it never writes.