no-mistakes-postgres-sql 0.109.128

PostgreSQL SQL parsing, statement facts, and identifier extraction for no-mistakes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::shape;

#[test]
fn table_only_arms_preserve_quoted_identity() {
    let sql = include_str!(concat!(
        env!("CARGO_MANIFEST_DIR"),
        "/../../test-cases/rules/postgres-bounded-statements/fixture/sql/temporary-table-only.sql"
    ));
    assert_eq!(
        shape(sql),
        [
            "select: () (opaque)",
            "select: () (accounts)",
            "select: () (public.\"Accounts\")",
            "select: () (accounts)"
        ]
    );
}