Open karlhorky opened 9 months ago
Yeah. It's definitely much simpler to achieve in here.
Also worth considering are the capitalization rules in SQLFluff. It implements 5 categories:
NULL
)It might be good to align our implementation with that. Though on the other hand I'd like to avoid configuration options and keep this plugin opinionated... but capitalization is an area where I've already decided that it's better for it to be configurable. This still leaves the question of picking the best defaults.
CURRENT_DATE
which are functions, but with a special parenthesis-less syntax).Sounds reasonable to me 👍
Data types defaulting to uppercase is probably a good default too - the PostgreSQL docs seem like an outlier when it comes to their usage of lowercase data types
Similar to the
dataTypeCase
andfunctionCase
insql-formatter
:It seems like this would be much simpler to implement here, because according to SQL Explorer the node types already exist: