Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ON CONFLICT is not placed onto it's own line #37

Open
lucacasonato opened this issue Mar 8, 2024 · 2 comments
Open

ON CONFLICT is not placed onto it's own line #37

lucacasonato opened this issue Mar 8, 2024 · 2 comments

Comments

@lucacasonato
Copy link

Current formatting:

INSERT INTO
  users (name, email)
VALUES
  ($1, $2) ON CONFLICT (email) DO
UPDATE
SET
  name = $1

Proposed:

INSERT INTO
  users (name, email)
VALUES
  ($1, $2)
ON CONFLICT (email) DO UPDATE
SET
  name = $1
@wugeer
Copy link
Contributor

wugeer commented Sep 3, 2024

@lucacasonato Is the following output okay?

INSERT INTO
    users (name, email)
VALUES
    ($1, $2)
    ON CONFLICT (email) DO UPDATE
SET
    name = $1

@lucacasonato
Copy link
Author

I think one less indent would be better on that:

INSERT INTO
    users (name, email)
VALUES
    ($1, $2)
ON CONFLICT (email) DO UPDATE
SET
    name = $1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants