sqlformat-rs
sqlformat-rs copied to clipboard
Newline in `CREATE OR REPLACE ...`
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