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

Add SQL identifier case - new in SQL formatter 14.0.0 #172

Merged

Conversation

chrjorgensen
Copy link
Contributor

This PR will

  • update SQL formatter to version 14.0.0, which includes the new option for identifier formatting
  • add a configuration value sqlFormat.identifierCase to allow the user to have SQL identifier in lower- or uppercase or not changed. Default is preserve to not change the identifier case unintentionally.

With this support the following SQL statement

image

will be formatted like this (with identifiers set to uppercase and keywords to lowercase):

image

@chrjorgensen chrjorgensen added the enhancement New feature or request label Nov 24, 2023
@worksofliam worksofliam self-assigned this Nov 27, 2023
Copy link
Contributor

@worksofliam worksofliam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New config is awesome! preserve is a nice touch.

Thank you @chrjorgensen!

@worksofliam worksofliam merged commit e999655 into codefori:main Nov 27, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants