• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sql-formatter-org / sql-formatter / 25882945441
96%

Build:
DEFAULT BRANCH: master
Ran 14 May 2026 08:11PM UTC
Jobs 1
Files 88
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 May 2026 08:10PM UTC coverage: 95.538%. Remained the same
25882945441

push

github

web-flow
Add support for PostgreSQL keywords in CREATE CONSTRAINT TRIGGER (#948)

Config:

```js
language: 'postgresql',
keywordCase: 'upper',
identifierCase: 'lower',
```

Before:

```sql
CREATE CONSTRAINT TRIGGER example_trigger
AFTER insert
OR
UPDATE of column_a,
column_b ON example_table DEFERRABLE INITIALLY deferred FOR each ROW
EXECUTE procedure example_function ();

CREATE TRIGGER example_trigger
AFTER insert
OR
UPDATE
OR delete ON example_table FOR each ROW
EXECUTE function example_function ();
```

After:

```sql
CREATE CONSTRAINT TRIGGER example_trigger
AFTER INSERT OR UPDATE OF column_a,
column_b ON example_table
DEFERRABLE INITIALLY DEFERRED FOR EACH ROW
EXECUTE PROCEDURE example_function ();

CREATE TRIGGER example_trigger
AFTER INSERT OR UPDATE OR DELETE ON example_table FOR EACH ROW
EXECUTE FUNCTION example_function ();
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* PostgreSQL formatting now recognizes additional reserved multi-word
phrases and variants (improves handling of trigger/constraint event
clauses, EXECUTE forms, AFTER/DEFERRABLE variants, and FOR EACH ROW) for
more accurate SQL output.

* **Tests**
* Added regression tests verifying CREATE CONSTRAINT/TRIGGER formatting
and correct casing preservation for keywords and identifiers.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/sql-formatter-org/sql-formatter/pull/948)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

574 of 644 branches covered (89.13%)

Branch coverage included in aggregate %.

1310 of 1328 relevant lines covered (98.64%)

16313.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25882945441.1 14 May 2026 08:11PM UTC 88
95.54
GitHub Action Run
Source Files on build 25882945441
  • Tree
  • List 88
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 2017285c on github
  • Prev Build on master (#25856658945)
  • Next Build on master (#25991069777)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc