darold / pgFormatter

A PostgreSQL SQL syntax beautifier that can work as a console program or as a CGI. On-line demo site at http://sqlformat.darold.net/
PostgreSQL License
1.69k stars 101 forks source link

Unattractive formatting of `CREATE TYPE` columns #344

Open aleclarson opened 2 months ago

aleclarson commented 2 months ago

Input:

CREATE TYPE address_type AS (
  street varchar(100),
  city varchar(50),
  state varchar(50),
  zip_code varchar(20)
);

Output:

CREATE TYPE address_type AS (
  street varchar ( 100),
  city varchar(50),
  state varchar(50),
  zip_code varchar(20));