mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 07:16:01 +00:00
perspective - load hiearchic JSON
This commit is contained in:
@@ -68,5 +68,9 @@ export function dumpSqlCondition(dmp: SqlDumper, condition: Condition) {
|
||||
dmp.put(' ^and ');
|
||||
dumpSqlExpression(dmp, condition.right);
|
||||
break;
|
||||
case 'in':
|
||||
dumpSqlExpression(dmp, condition.expr);
|
||||
dmp.put(' ^in (%,v)', condition.values);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,6 +99,12 @@ export interface BetweenCondition {
|
||||
right: Expression;
|
||||
}
|
||||
|
||||
export interface InCondition {
|
||||
conditionType: 'in';
|
||||
expr: Expression;
|
||||
values: any[];
|
||||
}
|
||||
|
||||
export type Condition =
|
||||
| BinaryCondition
|
||||
| NotCondition
|
||||
@@ -107,7 +113,8 @@ export type Condition =
|
||||
| LikeCondition
|
||||
| ExistsCondition
|
||||
| NotExistsCondition
|
||||
| BetweenCondition;
|
||||
| BetweenCondition
|
||||
| InCondition;
|
||||
|
||||
export interface Source {
|
||||
name?: NamedObjectInfo;
|
||||
|
||||
Reference in New Issue
Block a user