Skip to content

Allow uppercasing of function names separately from keywords #237

@nene

Description

@nene

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:

SELECT
  round(price * abs(tax)) AS final_price
FROM
  inventory;

This feature is also widespread in many other SQL formatting tools:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions