Skip to main content

PG_TEST_KEY

Constant PG_TEST_KEY 

Source
pub const PG_TEST_KEY: &str = "@postgres";
Expand description

#3321: the key the opt-in Postgres test double’s schema rides under in a D1Migrations on its way to the test emitters. Not a database name (those are <worker>-<capability>, never starting @), so it cannot collide with one, and nothing that looks a database up finds it. Present exactly when the project has [test] postgres = "pglite"; its one file is schema.sql, or none when the project has none.