File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ declare module 'node-sql-parser' {
1212 columns ?: any [ ]
1313 }
1414 type WhilteListCheckMode = 'table' | 'column'
15- export interface TableColumnAst {
15+ interface TableColumnAst {
1616 tableList : string [ ] ,
1717 columnsList : string [ ] ,
1818 ast : AST [ ] | AST
@@ -22,33 +22,27 @@ declare module 'node-sql-parser' {
2222 table : string
2323 as : string | null
2424 }
25-
2625 interface Dual {
2726 type : 'dual'
2827 }
29-
3028 interface Limit {
3129 type : string ,
3230 value : number
3331 }
34-
3532 interface OrderBy {
3633 type : 'ASC' | 'DESC' ,
3734 expr : any
3835 }
39-
4036 interface ColumnRef {
4137 type : 'column_ref' ,
4238 table : string | null ,
4339 column : string
4440 }
45-
4641 interface Set {
4742 column : string ,
4843 value : any ,
4944 table : string | null
5045 }
51-
5246 interface Select {
5347 with : With | null ,
5448 type : TYPE . SELECT ,
@@ -62,30 +56,26 @@ declare module 'node-sql-parser' {
6256 orderby : OrderBy [ ] | null ,
6357 limit : Limit [ ] | null
6458 }
65-
6659 interface Insert_Replace {
6760 type : TYPE . INSERT | TYPE . REPLACE ,
6861 db : string | null ,
6962 table : string ,
7063 columns : string [ ] | null ,
7164 values : { type : 'expr_list' , value : any [ ] } [ ]
7265 }
73-
7466 interface Update {
7567 type : TYPE . UPDATE ,
7668 db : string | null ,
7769 table : string ,
7870 set : Set [ ] ,
7971 where : any
8072 }
81-
8273 interface Delete {
8374 type : TYPE . DELETE ,
8475 tables : any ,
8576 from : ( From | Dual ) [ ] ,
8677 where : any
8778 }
88-
8979 export type AST = Select | Insert_Replace | Update | Delete
9080 export class Parser {
9181 constructor ( ) ;
You can’t perform that action at this time.
0 commit comments