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 dataTypeCase & functionCase #689

Merged
merged 39 commits into from
Dec 7, 2023
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
bdf3be9
Identify PostgreSQL data types, add docs
karlhorky Nov 27, 2023
c6fb0b6
Add docs for functionCase, rename to dataTypeCase
karlhorky Nov 29, 2023
2ba9d0a
Add caveat about dataTypeCase language support
karlhorky Nov 29, 2023
10b4451
Move more data types to separate constant
karlhorky Nov 30, 2023
a555575
Add TokenType.RESERVED_DATA_TYPE and dataTypeCase
karlhorky Nov 30, 2023
129ba96
Merge branch 'separate-data-types' of github.com:karlhorky/sql-format…
karlhorky Nov 30, 2023
4ae6c48
Add functionCase option, make keywordCase default
karlhorky Nov 30, 2023
f8df2f6
Improve docs
karlhorky Nov 30, 2023
d57af57
Merge branch 'separate-data-types' of github.com:karlhorky/sql-format…
karlhorky Dec 1, 2023
9d4c929
Switch to reservedDataTypes
karlhorky Dec 1, 2023
4f46845
Revert to independent defaults
karlhorky Dec 1, 2023
bf17e85
Merge branch 'sql-formatter-org:master' into add-datatypeformat-option
karlhorky Dec 1, 2023
9815a46
Address ESLint no-nested-ternary rule error
karlhorky Dec 1, 2023
fb60928
Improve grammar and wording
karlhorky Dec 1, 2023
66d596e
Add tests for casing ARRAY data types
karlhorky Dec 1, 2023
8d81244
Add tests for dataTypeCase and functionCase
karlhorky Dec 2, 2023
a4e4070
Improve docs
karlhorky Dec 2, 2023
4ee4965
Add NUMERIC
karlhorky Dec 3, 2023
96d3ef7
Revert funcNameToKeyword() to its previous form
nene Dec 6, 2023
23848a1
Remove data types from function name lists
nene Dec 6, 2023
8db91fa
Move DB2 datatypes from functions to dataTypes array
nene Dec 6, 2023
cf7a656
Move DB2i datatypes from functions to dataTypes array
nene Dec 6, 2023
ea7f390
Move Spark datatypes from functions to dataTypes array
nene Dec 6, 2023
2ebd732
Parse parameterized data types to separate type of AST node
nene Dec 6, 2023
fdb8f32
Remove support for ANY operator in SQLite
nene Dec 6, 2023
a0a3c6b
Remove unnecessary CREATE TABLE test
nene Dec 7, 2023
bcd084d
Remove all data types from N1QL
nene Dec 7, 2023
98b3816
Merge branch 'master' into data-type-case-option
nene Dec 7, 2023
82b60bc
Remove unnecessary dataTypeCase tests (using CAST)
nene Dec 7, 2023
3b1cd75
Include parameterized types to dataTypeCase test
nene Dec 7, 2023
49731ee
Remove string format parameters from BigQuery keywords
nene Dec 7, 2023
9bf2110
Simplify ARRAY[] + dataTypeCase tests
nene Dec 7, 2023
24bf4b0
Treat the "array" in ARRAY[] as keyword (not as data type)
nene Dec 7, 2023
55bd653
Additional test for STRUCT and ARRAY in BigQuery
nene Dec 7, 2023
04947c6
Update dataTypeCase docs
nene Dec 7, 2023
aaa667e
Better examples for functionCase option docs
nene Dec 7, 2023
2e0f53f
Ensure that CAST() is cased as a function
nene Dec 7, 2023
9292b01
Update identifierCase docs with regards to functionCase
nene Dec 7, 2023
d0a7406
Fix formatting in identifierCase docs code examples
nene Dec 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update identifierCase docs with regards to functionCase
nene committed Dec 7, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 9292b0121e43117490b17b3f99c74432f76f443c
1 change: 0 additions & 1 deletion docs/identifierCase.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ This option doesn't yet support all types of identifiers:

- prefixed variables like `@my_var` are not converted.
- parameter placeholders like `:param` are not converted.
- function names like `count(*)` are not converted (this are currently governed by `keywordCase` option instead.)

## Options