rally/runtime/test_db

Values

pub fn setup(
  migrations_dir: String,
) -> Result(sqlight.Connection, Nil)

Open a fresh in-memory database with migrations already applied. The first call delegates migrations to Marmot and caches the resulting template db via persistent_term. Subsequent calls clone it via SQLite’s backup API (page-level copy), avoiding re-running migrations per test.

Search Document