Skip to content

New Rule: ban-uncommitted-transaction

Choose a tag to compare

@sbdchd sbdchd released this 31 Oct 01:18
· 211 commits to master since this release
95d1c0c

Added

  • linter: new rule ban-uncommitted-transaction

    Squawk now warns about missing commit statements like:

    begin;
    create table t(id bigint);
    warning[ban-uncommitted-transaction]: Transaction never committed or rolled back.
      β•­β–Έ stdin:1:1
      β”‚
    1 β”‚ begin;
      β”‚ ━━━━━
      β”‚
      β”œ help: Add a `COMMIT` or `ROLLBACK` statement to complete the transaction.
      β•­β•΄
    2 Β±
    3 + COMMIT;
      β•°β•΄