Skip to main content

Module default_world

Module default_world 

Source
Expand description

The world installed when nothing has been pushed, and the marker that says which database it belongs to.

Built from the same fixtures the seed writes its database rows from: the restore-from-template setup path runs no seed, and a world of the mock’s own there would hand the two setup paths different fixtures.

Functions§

build
db_generation_marker
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.