pgFormatter icon indicating copy to clipboard operation
pgFormatter copied to clipboard

Unattractive formatting of CHECK expression

Open aleclarson opened this issue 1 year ago • 0 comments

Input

CREATE TYPE person AS (
  id text NOT NULL,
  age integer NOT NULL CHECK (age > 0),
);

Output

CREATE TYPE person AS (
  id text NOT NULL,
  age integer NOT NULL CHECK (
    age > 0),
);

I would prefer the CHECK expression to either not be wrapped or the closing paren should be on its own line.

aleclarson avatar Aug 29 '24 22:08 aleclarson