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

`RETURNING` is not placed on a new line

Open lucacasonato opened this issue 1 year ago • 0 comments

The current behaviour:

INSERT INTO
  users (name, email)
VALUES
  ($1, $2) RETURNING name,
  email

Would be better as:

INSERT INTO
  users (name, email)
VALUES
  ($1, $2)
RETURNING
  name,
  email

The change is that RETURNING is on it's own line.

lucacasonato avatar Mar 08 '24 17:03 lucacasonato