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 runs migrations into a template db cached via persistent_term. Subsequent calls clone it via SQLite’s backup API (page-level copy), avoiding re-running migrations per test.

Search Document