-
Notifications
You must be signed in to change notification settings - Fork 404
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
Allow uppercasing of function names separately from keywords #237
Comments
The initial most obvious solution I had in my head was to distinguish them solely by name, but this won't work as some function name are also keywords used elsewhere in SQL. For example:
Luckily these are fairly rare cases. But still. Another option would be to look whether function name is followed by open-parenthesis |
There is also the reverse case: some functions do not require parentheses: ie. |
|
Ah this is also closed by my PR for |
Currently we have a single option
keywordCase
which specifies the case for both keywords and function names.It would be nice to allow more fine-grained control by having a separate option
functionCase
to control whether function names should be uppercased or lowercased. It's quite common practice when writing SQL to have different case-convention for the keywords and function names. Most commonly uppercasing keywords and lowercasing function names, like:This feature is also widespread in many other SQL formatting tools:
The text was updated successfully, but these errors were encountered: