Skip to main content

PROBE_TABLE

Constant PROBE_TABLE 

pub const PROBE_TABLE: &str = "\
CREATE TABLE IF NOT EXISTS projection_probe (
    k text   NOT NULL PRIMARY KEY,
    v bigint NOT NULL
);";
Available on crate features conformance and projection-store only.
Expand description

The conformance suite’s own read model.

A constant here rather than a file in migrations/, and the placement is the decision: a .sql file in that directory is, by construction, something a DBA applies. A test read model inside an application’s database is a defect no test in this repository could catch, because every test enables the feature that creates it.