File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { Node, ParserOptions as CstParserOptions } from "sql-parser-cst";
3
3
4
4
export interface SqlPluginOptions {
5
5
sqlKeywordCase : "preserve" | "upper" | "lower" ;
6
+ sqlLiteralCase : "preserve" | "upper" | "lower" ;
6
7
sqlParamTypes : NonNullable < CstParserOptions [ "paramTypes" ] > ;
7
8
sqlCanonicalSyntax : boolean ;
8
9
sqlFinalSemicolon : boolean ;
@@ -36,6 +37,29 @@ export const options: SupportOptions = {
36
37
} ,
37
38
] ,
38
39
} ,
40
+ sqlLiteralCase : {
41
+ type : "choice" ,
42
+ category : "SQL" ,
43
+ default : "upper" ,
44
+ description : "Enforces upper/lower case for SQL literals" ,
45
+ choices : [
46
+ {
47
+ value : "preserve" ,
48
+ description : "preserves the existing case" ,
49
+ since : "0.14.0" ,
50
+ } ,
51
+ {
52
+ value : "upper" ,
53
+ description : "forces all keywords to uppercase" ,
54
+ since : "0.14.0" ,
55
+ } ,
56
+ {
57
+ value : "lower" ,
58
+ description : "forces all keywords to lowercase" ,
59
+ since : "0.14.0" ,
60
+ } ,
61
+ ] ,
62
+ } ,
39
63
sqlParamTypes : {
40
64
type : "string" ,
41
65
array : true ,
You can’t perform that action at this time.
0 commit comments