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

sql-formatter-org / sql-formatter
96%

Build:
DEFAULT BRANCH: master
Repo Added 08 Jun 2022 08:56AM UTC
Token z6xzdvRlXyWF7CvPCGeVeXqiq3KZm10Cj regen
Build 515 Last
Files 88
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
Sync Branches
  • master

30 Jun 2026 06:43AM UTC coverage: 95.611% (+0.009%) from 95.602%
28425584054

push

github

web-flow
fix(postgresql): keep spaces around OPERATOR() with denseOperators (#958)

I was trying out `denseOperators` on some Postgres queries and noticed
it mangles the `OPERATOR(schema.op)` syntax:

```
format('SELECT foo OPERATOR(public.===) bar;', { language: 'postgresql', denseOperators: true })
// =>
// SELECT
//   fooOPERATOR(public.===)bar;
```

The spaces around the operator get stripped, so `foo` runs into the
`OPERATOR` keyword and the result no longer parses. Unlike `+`/`=`/etc.,
this one is keyword-like and can't be glued to its operands, so I made
it keep its surrounding spaces even in dense mode — same idea as the
existing `-` exception for dialects with dashed identifiers.

Added a test under the existing OPERATOR() case in postgresql.test.ts.

593 of 663 branches covered (89.44%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

1324 of 1342 relevant lines covered (98.66%)

16463.25 hits per line

Relevant lines Covered
Build:
Build:
1342 RELEVANT LINES 1324 COVERED LINES
16463.25 HITS PER LINE
Source Files on master
  • Tree
  • List 88
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28425584054 master fix(postgresql): keep spaces around OPERATOR() with denseOperators (#958) I was trying out `denseOperators` on some Postgres queries and noticed it mangles the `OPERATOR(schema.op)` syntax: ``` format('SELECT foo OPERATOR(public.===) bar;', { la... push 30 Jun 2026 06:44AM UTC web-flow github
95.61
28383725773 master Upgrade to pnpm@11.9.0, remove `pmOnFail: download` config (#957) Upgrade to [`pnpm@11.9.0`](https://github.com/pnpm/pnpm/releases/tag/v11.9.0) and remove `pmOnFail: download` workaround: - https://github.com/sql-formatter-org/sql-formatter/pull... push 29 Jun 2026 03:34PM UTC web-flow github
95.6
28380556810 master Merge branch 'fix-dense-minus-comment' push 29 Jun 2026 02:45PM UTC nene github
95.6
27914672765 master Improve Coderabbit config with .coderabbit.yaml (#955) Address @nene's feedback in https://github.com/sql-formatter-org/sql-formatter/issues/947#issuecomment-4761681667 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> #... push 21 Jun 2026 07:14PM UTC web-flow github
95.58
27901972030 master Release 15.8.2 push 21 Jun 2026 10:51AM UTC nene github
95.58
27901335597 master fix: keep spaces around - operator in dialects with dashed identifiers (#953) With `denseOperators: true` on BigQuery, a subtraction like `a - b` comes out as `a-b`. That's not just ugly: BigQuery allows dashes inside identifiers, so the densed o... push 21 Jun 2026 10:23AM UTC web-flow github
95.58
26974064740 master Release 15.8.1 push 04 Jun 2026 07:19PM UTC nene github
95.56
26972323033 master Merge branch 'fix-block-comment-idempotency' push 04 Jun 2026 06:45PM UTC nene github
95.56
25998540776 master Release v15.8.0 push 17 May 2026 06:03PM UTC nene github
95.54
25991069777 master Fix scripts using -- (pnpm interprets this as file name) push 17 May 2026 12:38PM UTC nene github
95.54
See All Builds (508)

Badge your Repo: sql-formatter

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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