no-mistakes-postgres-engine 0.109.130

PostgreSQL embedded SQL extraction, schema catalog, and replay-safety analysis for no-mistakes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

#[test]
fn async_const_bound_arrow_helper_is_rejected() {
    let facts = extract("composed-chain-const-arrow-async.ts");
    assert_eq!(facts.calls[0].kind, super::super::EmbeddedSqlKind::Dynamic);
}

#[test]
fn exported_non_function_declaration_is_ignored_by_helper_collection() {
    let facts = extract("composed-chain-export-class-ignored.ts");
    assert_eq!(facts.calls[0].kind, super::super::EmbeddedSqlKind::Composed);
    assert_eq!(
        facts.calls[0].sql_text.as_deref(),
        Some("SELECT id FROM topics WHERE id = 1")
    );
}