sqruff-lib 0.39.0

A high-speed SQL linter.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
rule: LT02

test_pass_postgres_named_table_constraint_indent:
  pass_str: |
    CREATE TABLE child (
        parent_id INTEGER,
        CONSTRAINT child_parent_fk
            FOREIGN KEY (parent_id)
            REFERENCES parent(id)
            ON DELETE CASCADE
    );
  configs:
    core:
      dialect: postgres