no-mistakes-postgres-sql 0.109.131

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 repeated_begin_preserves_the_original_transaction_and_savepoints() {
    let sql = include_str!(concat!(
        env!("CARGO_MANIFEST_DIR"),
        "/../../test-cases/rules/postgres-bounded-statements/fixture/sql/temporary-repeated-begin.sql"
    ));
    assert_eq!(
        shape(sql),
        [
            "select: accounts",
            "select: accounts",
            "select: opaque",
            "select: orders"
        ]
    );
}