perspective - load hiearchic JSON

This commit is contained in:
Jan Prochazka
2022-06-20 22:14:48 +02:00
parent 2ec3c2c24f
commit 42badf17eb
9 changed files with 277 additions and 46 deletions

View File

@@ -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;
}
}

View File

@@ -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;