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

Indentation configuration for functions #323

Open
abigailCortis opened this issue Aug 8, 2023 · 0 comments
Open

Indentation configuration for functions #323

abigailCortis opened this issue Aug 8, 2023 · 0 comments

Comments

@abigailCortis
Copy link

When using pg_formatter on create function statements, I would like to configure the indentation to be as shown in the first code block (where the RETURNS and AS keywords are at the same indentation level as the CREATE keyword) . Is there a way to configure this please?

Code to be formatted as

CREATE OR REPLACE FUNCTION function_name(...)
RETURNS boolean
AS $$
DECLARE
  ...

instead of:

CREATE OR REPLACE FUNCTION function_name(...)
  RETURNS boolean
  AS $$
DECLARE
  ...
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

1 participant