Skip to content

Commit e27139d

Browse files
author
Elrond
committed
docs(buzz-db): scope d_tag source guard to the SQL shapes it matches
Signed-off-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz>
1 parent 501dfd8 commit e27139d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎crates/buzz-db/tests/observability_source.rs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,6 +2155,13 @@ mod tests {
21552155
/// index that serves that lookup is partial on `d_tag IS NOT NULL`. A writer
21562156
/// that leaves the column out stores NULL, so its rows never replace. Nothing
21572157
/// repairs them after the fact, so every production writer must name the column.
2158+
///
2159+
/// This is a text match, not a proof. It checks the column list of literal
2160+
/// `INSERT INTO [public.]events (...)` SQL inside function bodies under each
2161+
/// crate's `src/`. It does not see `ONLY`, quoted or `format!`-built table
2162+
/// names, a comment between the keywords, or SQL held in a constant outside a
2163+
/// function, and it does not check that the bound value is non-NULL. Exempt
2164+
/// probes are skipped by function header, so every insert inside them is too.
21582165
#[test]
21592166
fn every_production_event_insert_names_d_tag() {
21602167
let mut checked_writers = 0;

0 commit comments

Comments
 (0)