dbgate-sqltree 5.2.7 → 5.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/types.d.ts +9 -9
- package/package.json +2 -2
package/lib/types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface Select {
|
|
|
12
12
|
where?: Condition;
|
|
13
13
|
having?: Condition;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type UpdateField = Expression & {
|
|
16
16
|
targetColumn: string;
|
|
17
17
|
};
|
|
18
18
|
export interface Update {
|
|
@@ -36,7 +36,7 @@ export interface AllowIdentityInsert {
|
|
|
36
36
|
targetTable: NamedObjectInfo;
|
|
37
37
|
allow: boolean;
|
|
38
38
|
}
|
|
39
|
-
export
|
|
39
|
+
export type Command = Select | Update | Delete | Insert | AllowIdentityInsert;
|
|
40
40
|
export interface UnaryCondition {
|
|
41
41
|
expr: Expression;
|
|
42
42
|
}
|
|
@@ -90,19 +90,19 @@ export interface AnyColumnPassEvalOnlyCondition {
|
|
|
90
90
|
conditionType: 'anyColumnPass';
|
|
91
91
|
placeholderCondition: Condition;
|
|
92
92
|
}
|
|
93
|
-
export
|
|
93
|
+
export type Condition = BinaryCondition | NotCondition | TestCondition | CompoudCondition | LikeCondition | ExistsCondition | NotExistsCondition | BetweenCondition | InCondition | RawTemplateCondition | AnyColumnPassEvalOnlyCondition;
|
|
94
94
|
export interface Source {
|
|
95
95
|
name?: NamedObjectInfo;
|
|
96
96
|
alias?: string;
|
|
97
97
|
subQuery?: Select;
|
|
98
98
|
subQueryString?: string;
|
|
99
99
|
}
|
|
100
|
-
export
|
|
101
|
-
export
|
|
100
|
+
export type JoinType = 'LEFT JOIN' | 'INNER JOIN' | 'RIGHT JOIN' | 'CROSS JOIN';
|
|
101
|
+
export type Relation = Source & {
|
|
102
102
|
conditions?: Condition[];
|
|
103
103
|
joinType: JoinType;
|
|
104
104
|
};
|
|
105
|
-
export
|
|
105
|
+
export type FromDefinition = Source & {
|
|
106
106
|
relations?: Relation[];
|
|
107
107
|
};
|
|
108
108
|
export interface ColumnRefExpression {
|
|
@@ -142,10 +142,10 @@ export interface RowNumberExpression {
|
|
|
142
142
|
exprType: 'rowNumber';
|
|
143
143
|
orderBy: OrderByExpression[];
|
|
144
144
|
}
|
|
145
|
-
export
|
|
146
|
-
export
|
|
145
|
+
export type Expression = ColumnRefExpression | ValueExpression | PlaceholderExpression | RawExpression | CallExpression | MethodCallExpression | TranformExpression | RowNumberExpression;
|
|
146
|
+
export type OrderByExpression = Expression & {
|
|
147
147
|
direction: 'ASC' | 'DESC';
|
|
148
148
|
};
|
|
149
|
-
export
|
|
149
|
+
export type ResultField = Expression & {
|
|
150
150
|
alias?: string;
|
|
151
151
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.2.
|
|
2
|
+
"version": "5.2.9",
|
|
3
3
|
"name": "dbgate-sqltree",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^13.7.0",
|
|
30
|
-
"dbgate-types": "^5.2.
|
|
30
|
+
"dbgate-types": "^5.2.9",
|
|
31
31
|
"typescript": "^4.4.3"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|