sqlformat-rs icon indicating copy to clipboard operation
sqlformat-rs copied to clipboard

Newline in `CREATE OR REPLACE ...`

Open pnezis opened this issue 11 months ago • 1 comments

For the following input:

CREATE OR REPLACE FUNCTION foo() RETURNS TEXT

the following formatted query is returned:

CREATE
OR REPLACE FUNCTION foo() RETURNS TEXT

The same applies for all CREATE OR REPLACE operations, e.g. procedures, aggregates, etc.

All sql formatters i know of do not add the new line, the formatted query should be:

CREATE OR REPLACE FUNCTION foo () RETURNS TEXT

pnezis avatar Nov 07 '24 10:11 pnezis