File tree 1 file changed +1
-11
lines changed
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ declare module 'node-sql-parser' {
12
12
columns ?: any [ ]
13
13
}
14
14
type WhilteListCheckMode = 'table' | 'column'
15
- export interface TableColumnAst {
15
+ interface TableColumnAst {
16
16
tableList : string [ ] ,
17
17
columnsList : string [ ] ,
18
18
ast : AST [ ] | AST
@@ -22,33 +22,27 @@ declare module 'node-sql-parser' {
22
22
table : string
23
23
as : string | null
24
24
}
25
-
26
25
interface Dual {
27
26
type : 'dual'
28
27
}
29
-
30
28
interface Limit {
31
29
type : string ,
32
30
value : number
33
31
}
34
-
35
32
interface OrderBy {
36
33
type : 'ASC' | 'DESC' ,
37
34
expr : any
38
35
}
39
-
40
36
interface ColumnRef {
41
37
type : 'column_ref' ,
42
38
table : string | null ,
43
39
column : string
44
40
}
45
-
46
41
interface Set {
47
42
column : string ,
48
43
value : any ,
49
44
table : string | null
50
45
}
51
-
52
46
interface Select {
53
47
with : With | null ,
54
48
type : TYPE . SELECT ,
@@ -62,30 +56,26 @@ declare module 'node-sql-parser' {
62
56
orderby : OrderBy [ ] | null ,
63
57
limit : Limit [ ] | null
64
58
}
65
-
66
59
interface Insert_Replace {
67
60
type : TYPE . INSERT | TYPE . REPLACE ,
68
61
db : string | null ,
69
62
table : string ,
70
63
columns : string [ ] | null ,
71
64
values : { type : 'expr_list' , value : any [ ] } [ ]
72
65
}
73
-
74
66
interface Update {
75
67
type : TYPE . UPDATE ,
76
68
db : string | null ,
77
69
table : string ,
78
70
set : Set [ ] ,
79
71
where : any
80
72
}
81
-
82
73
interface Delete {
83
74
type : TYPE . DELETE ,
84
75
tables : any ,
85
76
from : ( From | Dual ) [ ] ,
86
77
where : any
87
78
}
88
-
89
79
export type AST = Select | Insert_Replace | Update | Delete
90
80
export class Parser {
91
81
constructor ( ) ;
You can’t perform that action at this time.
0 commit comments