@itwin/ecsql-common 5.0.0-dev.55 → 5.0.0-dev.57
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/cjs/ECSqlAst.js +172 -54
- package/lib/cjs/ECSqlAst.js.map +1 -1
- package/lib/esm/ECSqlAst.js +172 -54
- package/lib/esm/ECSqlAst.js.map +1 -1
- package/package.json +4 -4
package/lib/esm/ECSqlAst.js
CHANGED
|
@@ -127,6 +127,7 @@ export var ExprType;
|
|
|
127
127
|
* @alpha
|
|
128
128
|
*/
|
|
129
129
|
export class ExprFactory {
|
|
130
|
+
provider;
|
|
130
131
|
constructor(provider) {
|
|
131
132
|
this.provider = provider;
|
|
132
133
|
}
|
|
@@ -139,6 +140,7 @@ export class ExprFactory {
|
|
|
139
140
|
* @alpha
|
|
140
141
|
*/
|
|
141
142
|
export class Expr {
|
|
143
|
+
expType;
|
|
142
144
|
constructor(expType) {
|
|
143
145
|
this.expType = expType;
|
|
144
146
|
}
|
|
@@ -247,7 +249,7 @@ export class ComputedExpr extends Expr {
|
|
|
247
249
|
* @alpha
|
|
248
250
|
*/
|
|
249
251
|
export class BooleanExpr extends ComputedExpr {
|
|
250
|
-
static
|
|
252
|
+
static deserializableIds = [NativeExpIds.BinaryBoolean, NativeExpIds.BooleanFactor, NativeExpIds.SubqueryTest, NativeExpIds.AllOrAny, NativeExpIds.BooleanFactor];
|
|
251
253
|
static deserialize(node) {
|
|
252
254
|
if (node.id === NativeExpIds.BinaryBoolean) {
|
|
253
255
|
const op = node.op;
|
|
@@ -299,7 +301,7 @@ export class BooleanExpr extends ComputedExpr {
|
|
|
299
301
|
* @alpha
|
|
300
302
|
*/
|
|
301
303
|
export class ValueExpr extends ComputedExpr {
|
|
302
|
-
static
|
|
304
|
+
static deserializableIds = [
|
|
303
305
|
NativeExpIds.LiteralValue,
|
|
304
306
|
NativeExpIds.Parameter,
|
|
305
307
|
NativeExpIds.FunctionCall,
|
|
@@ -311,7 +313,7 @@ export class ValueExpr extends ComputedExpr {
|
|
|
311
313
|
NativeExpIds.PropertyName,
|
|
312
314
|
NativeExpIds.Subquery,
|
|
313
315
|
NativeExpIds.NavValueCreationFunc,
|
|
314
|
-
];
|
|
316
|
+
];
|
|
315
317
|
static deserialize(node) {
|
|
316
318
|
if (node.id === NativeExpIds.UnaryValue) {
|
|
317
319
|
return UnaryValueExpr.deserialize(node);
|
|
@@ -360,13 +362,13 @@ export class ValueExpr extends ComputedExpr {
|
|
|
360
362
|
* @alpha
|
|
361
363
|
*/
|
|
362
364
|
export class ClassRefExpr extends Expr {
|
|
363
|
-
static
|
|
365
|
+
static deserializableIds = [
|
|
364
366
|
NativeExpIds.ClassName,
|
|
365
367
|
NativeExpIds.SubqueryRef,
|
|
366
368
|
NativeExpIds.UsingRelationshipJoinExp,
|
|
367
369
|
NativeExpIds.QualifiedJoin,
|
|
368
370
|
NativeExpIds.CommonTableBlockName,
|
|
369
|
-
];
|
|
371
|
+
];
|
|
370
372
|
static deserialize(node) {
|
|
371
373
|
if (node.id === NativeExpIds.ClassName) {
|
|
372
374
|
return ClassNameExpr.deserialize(node);
|
|
@@ -394,6 +396,10 @@ export class ClassRefExpr extends Expr {
|
|
|
394
396
|
* @alpha
|
|
395
397
|
*/
|
|
396
398
|
export class ECSqlWriter {
|
|
399
|
+
options;
|
|
400
|
+
_tokens = [];
|
|
401
|
+
_currentIndent = 0;
|
|
402
|
+
_isNewLine = false;
|
|
397
403
|
constructor(options = {
|
|
398
404
|
multiline: false,
|
|
399
405
|
spaceAfterComma: true,
|
|
@@ -403,9 +409,6 @@ export class ECSqlWriter {
|
|
|
403
409
|
indent: { size: 3, char: " " },
|
|
404
410
|
}) {
|
|
405
411
|
this.options = options;
|
|
406
|
-
this._tokens = [];
|
|
407
|
-
this._currentIndent = 0;
|
|
408
|
-
this._isNewLine = false;
|
|
409
412
|
}
|
|
410
413
|
indent() {
|
|
411
414
|
this._currentIndent++;
|
|
@@ -492,7 +495,9 @@ export class ECSqlWriter {
|
|
|
492
495
|
* @alpha
|
|
493
496
|
*/
|
|
494
497
|
export class DerivedPropertyExpr extends Expr {
|
|
495
|
-
|
|
498
|
+
computedExpr;
|
|
499
|
+
alias;
|
|
500
|
+
static type = ExprType.DerivedProperty;
|
|
496
501
|
constructor(computedExpr, alias) {
|
|
497
502
|
super(DerivedPropertyExpr.type);
|
|
498
503
|
this.computedExpr = computedExpr;
|
|
@@ -520,7 +525,10 @@ export class DerivedPropertyExpr extends Expr {
|
|
|
520
525
|
* @alpha
|
|
521
526
|
*/
|
|
522
527
|
export class DeleteStatementExpr extends StatementExpr {
|
|
523
|
-
|
|
528
|
+
className;
|
|
529
|
+
where;
|
|
530
|
+
options;
|
|
531
|
+
static type = ExprType.DeleteStatement;
|
|
524
532
|
constructor(className, where, options) {
|
|
525
533
|
super(DeleteStatementExpr.type);
|
|
526
534
|
this.className = className;
|
|
@@ -565,7 +573,10 @@ export class DeleteStatementExpr extends StatementExpr {
|
|
|
565
573
|
* @alpha
|
|
566
574
|
*/
|
|
567
575
|
export class InsertStatementExpr extends StatementExpr {
|
|
568
|
-
|
|
576
|
+
className;
|
|
577
|
+
values;
|
|
578
|
+
propertyNames;
|
|
579
|
+
static type = ExprType.InsertStatement;
|
|
569
580
|
constructor(className, values, propertyNames) {
|
|
570
581
|
super(InsertStatementExpr.type);
|
|
571
582
|
this.className = className;
|
|
@@ -628,7 +639,11 @@ export class InsertStatementExpr extends StatementExpr {
|
|
|
628
639
|
* @alpha
|
|
629
640
|
*/
|
|
630
641
|
export class QualifiedJoinExpr extends ClassRefExpr {
|
|
631
|
-
|
|
642
|
+
joinType;
|
|
643
|
+
from;
|
|
644
|
+
to;
|
|
645
|
+
spec;
|
|
646
|
+
static type = ExprType.QualifiedJoin;
|
|
632
647
|
constructor(joinType, from, to, spec) {
|
|
633
648
|
super(QualifiedJoinExpr.type);
|
|
634
649
|
this.joinType = joinType;
|
|
@@ -709,7 +724,11 @@ export class QualifiedJoinExpr extends ClassRefExpr {
|
|
|
709
724
|
* @alpha
|
|
710
725
|
*/
|
|
711
726
|
export class UsingRelationshipJoinExpr extends ClassRefExpr {
|
|
712
|
-
|
|
727
|
+
fromClassName;
|
|
728
|
+
toClassName;
|
|
729
|
+
toRelClassName;
|
|
730
|
+
direction;
|
|
731
|
+
static type = ExprType.UsingRelationshipJoin;
|
|
713
732
|
constructor(fromClassName, toClassName, toRelClassName, direction) {
|
|
714
733
|
super(UsingRelationshipJoinExpr.type);
|
|
715
734
|
this.fromClassName = fromClassName;
|
|
@@ -751,7 +770,9 @@ export class UsingRelationshipJoinExpr extends ClassRefExpr {
|
|
|
751
770
|
* @alpha
|
|
752
771
|
*/
|
|
753
772
|
export class SubqueryTestExpr extends BooleanExpr {
|
|
754
|
-
|
|
773
|
+
op;
|
|
774
|
+
query;
|
|
775
|
+
static type = ExprType.SubqueryTest;
|
|
755
776
|
constructor(op, query) {
|
|
756
777
|
super(SubqueryTestExpr.type);
|
|
757
778
|
this.op = op;
|
|
@@ -778,7 +799,10 @@ export class SubqueryTestExpr extends BooleanExpr {
|
|
|
778
799
|
* @alpha
|
|
779
800
|
*/
|
|
780
801
|
export class SubqueryRefExpr extends ClassRefExpr {
|
|
781
|
-
|
|
802
|
+
query;
|
|
803
|
+
polymorphicInfo;
|
|
804
|
+
alias;
|
|
805
|
+
static type = ExprType.SubqueryRef;
|
|
782
806
|
constructor(query, polymorphicInfo, alias) {
|
|
783
807
|
super(SubqueryRefExpr.type);
|
|
784
808
|
this.query = query;
|
|
@@ -817,7 +841,9 @@ export class SubqueryRefExpr extends ClassRefExpr {
|
|
|
817
841
|
* @alpha
|
|
818
842
|
*/
|
|
819
843
|
export class SelectStatementExpr extends StatementExpr {
|
|
820
|
-
|
|
844
|
+
singleSelect;
|
|
845
|
+
nextSelect;
|
|
846
|
+
static type = ExprType.SelectStatement;
|
|
821
847
|
constructor(singleSelect, nextSelect) {
|
|
822
848
|
super(SelectStatementExpr.type);
|
|
823
849
|
this.singleSelect = singleSelect;
|
|
@@ -865,7 +891,8 @@ export class SelectStatementExpr extends StatementExpr {
|
|
|
865
891
|
* @alpha
|
|
866
892
|
*/
|
|
867
893
|
export class SelectionClauseExpr extends Expr {
|
|
868
|
-
|
|
894
|
+
derivedPropertyList;
|
|
895
|
+
static type = ExprType.SelectionClause;
|
|
869
896
|
constructor(derivedPropertyList) {
|
|
870
897
|
super(SelectionClauseExpr.type);
|
|
871
898
|
this.derivedPropertyList = derivedPropertyList;
|
|
@@ -893,7 +920,8 @@ export class SelectionClauseExpr extends Expr {
|
|
|
893
920
|
* @alpha
|
|
894
921
|
*/
|
|
895
922
|
export class GroupByClauseExpr extends Expr {
|
|
896
|
-
|
|
923
|
+
exprList;
|
|
924
|
+
static type = ExprType.GroupByClause;
|
|
897
925
|
constructor(exprList) {
|
|
898
926
|
super(GroupByClauseExpr.type);
|
|
899
927
|
this.exprList = exprList;
|
|
@@ -925,7 +953,8 @@ export class GroupByClauseExpr extends Expr {
|
|
|
925
953
|
* @alpha
|
|
926
954
|
*/
|
|
927
955
|
export class HavingClauseExpr extends Expr {
|
|
928
|
-
|
|
956
|
+
filterExpr;
|
|
957
|
+
static type = ExprType.HavingClause;
|
|
929
958
|
constructor(filterExpr) {
|
|
930
959
|
super(HavingClauseExpr.type);
|
|
931
960
|
this.filterExpr = filterExpr;
|
|
@@ -950,7 +979,8 @@ export class HavingClauseExpr extends Expr {
|
|
|
950
979
|
* @alpha
|
|
951
980
|
*/
|
|
952
981
|
export class FromClauseExpr extends Expr {
|
|
953
|
-
|
|
982
|
+
classRefs;
|
|
983
|
+
static type = ExprType.FromClause;
|
|
954
984
|
constructor(classRefs) {
|
|
955
985
|
super(FromClauseExpr.type);
|
|
956
986
|
this.classRefs = classRefs;
|
|
@@ -980,7 +1010,8 @@ export class FromClauseExpr extends Expr {
|
|
|
980
1010
|
* @alpha
|
|
981
1011
|
*/
|
|
982
1012
|
export class WhereClauseExp extends Expr {
|
|
983
|
-
|
|
1013
|
+
filterExpr;
|
|
1014
|
+
static type = ExprType.WhereClause;
|
|
984
1015
|
constructor(filterExpr) {
|
|
985
1016
|
super(WhereClauseExp.type);
|
|
986
1017
|
this.filterExpr = filterExpr;
|
|
@@ -1005,7 +1036,10 @@ export class WhereClauseExp extends Expr {
|
|
|
1005
1036
|
* @alpha
|
|
1006
1037
|
*/
|
|
1007
1038
|
export class OrderBySpecExpr extends Expr {
|
|
1008
|
-
|
|
1039
|
+
term;
|
|
1040
|
+
sortDirection;
|
|
1041
|
+
nulls;
|
|
1042
|
+
static type = ExprType.OrderBySpec;
|
|
1009
1043
|
constructor(term, sortDirection, nulls) {
|
|
1010
1044
|
super(OrderBySpecExpr.type);
|
|
1011
1045
|
this.term = term;
|
|
@@ -1040,7 +1074,8 @@ export class OrderBySpecExpr extends Expr {
|
|
|
1040
1074
|
* @alpha
|
|
1041
1075
|
*/
|
|
1042
1076
|
export class OrderByClauseExpr extends Expr {
|
|
1043
|
-
|
|
1077
|
+
terms;
|
|
1078
|
+
static type = ExprType.OrderByClause;
|
|
1044
1079
|
constructor(terms) {
|
|
1045
1080
|
super(OrderByClauseExpr.type);
|
|
1046
1081
|
this.terms = terms;
|
|
@@ -1072,7 +1107,9 @@ export class OrderByClauseExpr extends Expr {
|
|
|
1072
1107
|
* @alpha
|
|
1073
1108
|
*/
|
|
1074
1109
|
export class LimitClauseExpr extends Expr {
|
|
1075
|
-
|
|
1110
|
+
limit;
|
|
1111
|
+
offset;
|
|
1112
|
+
static type = ExprType.LimitClause;
|
|
1076
1113
|
constructor(limit, offset) {
|
|
1077
1114
|
super(LimitClauseExpr.type);
|
|
1078
1115
|
this.limit = limit;
|
|
@@ -1107,7 +1144,16 @@ export class LimitClauseExpr extends Expr {
|
|
|
1107
1144
|
* @alpha
|
|
1108
1145
|
*/
|
|
1109
1146
|
export class SelectExpr extends Expr {
|
|
1110
|
-
|
|
1147
|
+
selection;
|
|
1148
|
+
rowQuantifier;
|
|
1149
|
+
from;
|
|
1150
|
+
where;
|
|
1151
|
+
groupBy;
|
|
1152
|
+
having;
|
|
1153
|
+
orderBy;
|
|
1154
|
+
limit;
|
|
1155
|
+
options;
|
|
1156
|
+
static type = ExprType.Select;
|
|
1111
1157
|
constructor(selection, rowQuantifier, from, where, groupBy, having, orderBy, limit, options) {
|
|
1112
1158
|
super(SelectExpr.type);
|
|
1113
1159
|
this.selection = selection;
|
|
@@ -1200,7 +1246,8 @@ export class SelectExpr extends Expr {
|
|
|
1200
1246
|
* @alpha
|
|
1201
1247
|
*/
|
|
1202
1248
|
export class SubqueryExpr extends ValueExpr {
|
|
1203
|
-
|
|
1249
|
+
query;
|
|
1250
|
+
static type = ExprType.Subquery;
|
|
1204
1251
|
constructor(query) {
|
|
1205
1252
|
super(SubqueryExpr.type);
|
|
1206
1253
|
this.query = query;
|
|
@@ -1229,7 +1276,11 @@ export class SubqueryExpr extends ValueExpr {
|
|
|
1229
1276
|
* @alpha
|
|
1230
1277
|
*/
|
|
1231
1278
|
export class BinaryBooleanExpr extends BooleanExpr {
|
|
1232
|
-
|
|
1279
|
+
op;
|
|
1280
|
+
lhsExpr;
|
|
1281
|
+
rhsExpr;
|
|
1282
|
+
not;
|
|
1283
|
+
static type = ExprType.BinaryBoolean;
|
|
1233
1284
|
constructor(op, lhsExpr, rhsExpr, not) {
|
|
1234
1285
|
super(BinaryBooleanExpr.type);
|
|
1235
1286
|
this.op = op;
|
|
@@ -1260,7 +1311,9 @@ export class BinaryBooleanExpr extends BooleanExpr {
|
|
|
1260
1311
|
* @alpha
|
|
1261
1312
|
*/
|
|
1262
1313
|
export class IsNullExpr extends BooleanExpr {
|
|
1263
|
-
|
|
1314
|
+
operandExpr;
|
|
1315
|
+
not;
|
|
1316
|
+
static type = ExprType.IsNull;
|
|
1264
1317
|
constructor(operandExpr, not) {
|
|
1265
1318
|
super(IsNullExpr.type);
|
|
1266
1319
|
this.operandExpr = operandExpr;
|
|
@@ -1306,7 +1359,10 @@ export class IsNullExpr extends BooleanExpr {
|
|
|
1306
1359
|
* @alpha
|
|
1307
1360
|
*/
|
|
1308
1361
|
export class IsOfTypeExpr extends BooleanExpr {
|
|
1309
|
-
|
|
1362
|
+
lhsExpr;
|
|
1363
|
+
typeNames;
|
|
1364
|
+
not;
|
|
1365
|
+
static type = ExprType.IsOfType;
|
|
1310
1366
|
constructor(lhsExpr, typeNames, not) {
|
|
1311
1367
|
super(IsOfTypeExpr.type);
|
|
1312
1368
|
this.lhsExpr = lhsExpr;
|
|
@@ -1356,7 +1412,8 @@ export class IsOfTypeExpr extends BooleanExpr {
|
|
|
1356
1412
|
* @alpha
|
|
1357
1413
|
*/
|
|
1358
1414
|
export class NotExpr extends BooleanExpr {
|
|
1359
|
-
|
|
1415
|
+
operandExpr;
|
|
1416
|
+
static type = ExprType.Not;
|
|
1360
1417
|
constructor(operandExpr) {
|
|
1361
1418
|
super(NotExpr.type);
|
|
1362
1419
|
this.operandExpr = operandExpr;
|
|
@@ -1384,7 +1441,10 @@ export class NotExpr extends BooleanExpr {
|
|
|
1384
1441
|
* @alpha
|
|
1385
1442
|
*/
|
|
1386
1443
|
export class InExpr extends BooleanExpr {
|
|
1387
|
-
|
|
1444
|
+
lhsExpr;
|
|
1445
|
+
rhsExpr;
|
|
1446
|
+
not;
|
|
1447
|
+
static type = ExprType.In;
|
|
1388
1448
|
constructor(lhsExpr, rhsExpr, not) {
|
|
1389
1449
|
super(InExpr.type);
|
|
1390
1450
|
this.lhsExpr = lhsExpr;
|
|
@@ -1451,7 +1511,11 @@ export class InExpr extends BooleanExpr {
|
|
|
1451
1511
|
* @alpha
|
|
1452
1512
|
*/
|
|
1453
1513
|
export class LikeExpr extends BooleanExpr {
|
|
1454
|
-
|
|
1514
|
+
lhsExpr;
|
|
1515
|
+
patternExpr;
|
|
1516
|
+
escapeExpr;
|
|
1517
|
+
not;
|
|
1518
|
+
static type = ExprType.Like;
|
|
1455
1519
|
constructor(lhsExpr, patternExpr, escapeExpr, not) {
|
|
1456
1520
|
super(LikeExpr.type);
|
|
1457
1521
|
this.lhsExpr = lhsExpr;
|
|
@@ -1504,7 +1568,11 @@ export class LikeExpr extends BooleanExpr {
|
|
|
1504
1568
|
* @alpha
|
|
1505
1569
|
*/
|
|
1506
1570
|
export class BetweenExpr extends BooleanExpr {
|
|
1507
|
-
|
|
1571
|
+
lhsExpr;
|
|
1572
|
+
lowerBoundExpr;
|
|
1573
|
+
upperBoundExpr;
|
|
1574
|
+
not;
|
|
1575
|
+
static type = ExprType.Between;
|
|
1508
1576
|
constructor(lhsExpr, lowerBoundExpr, upperBoundExpr, not) {
|
|
1509
1577
|
super(BetweenExpr.type);
|
|
1510
1578
|
this.lhsExpr = lhsExpr;
|
|
@@ -1550,7 +1618,10 @@ export class BetweenExpr extends BooleanExpr {
|
|
|
1550
1618
|
* @alpha
|
|
1551
1619
|
*/
|
|
1552
1620
|
export class CteExpr extends StatementExpr {
|
|
1553
|
-
|
|
1621
|
+
cteBlocks;
|
|
1622
|
+
query;
|
|
1623
|
+
recursive;
|
|
1624
|
+
static type = ExprType.Cte;
|
|
1554
1625
|
constructor(cteBlocks, query, recursive) {
|
|
1555
1626
|
super(CteExpr.type);
|
|
1556
1627
|
this.cteBlocks = cteBlocks;
|
|
@@ -1589,7 +1660,10 @@ export class CteExpr extends StatementExpr {
|
|
|
1589
1660
|
* @alpha
|
|
1590
1661
|
*/
|
|
1591
1662
|
export class CteBlockExpr extends Expr {
|
|
1592
|
-
|
|
1663
|
+
name;
|
|
1664
|
+
query;
|
|
1665
|
+
props;
|
|
1666
|
+
static type = ExprType.CteBlock;
|
|
1593
1667
|
constructor(name, query, props) {
|
|
1594
1668
|
super(CteBlockExpr.type);
|
|
1595
1669
|
this.name = name;
|
|
@@ -1634,7 +1708,9 @@ export class CteBlockExpr extends Expr {
|
|
|
1634
1708
|
* @alpha
|
|
1635
1709
|
*/
|
|
1636
1710
|
export class CteBlockRefExpr extends ClassRefExpr {
|
|
1637
|
-
|
|
1711
|
+
name;
|
|
1712
|
+
alias;
|
|
1713
|
+
static type = ExprType.CteBlockRef;
|
|
1638
1714
|
constructor(name, alias) {
|
|
1639
1715
|
super(CteBlockRefExpr.type);
|
|
1640
1716
|
this.name = name;
|
|
@@ -1661,7 +1737,10 @@ export class CteBlockRefExpr extends ClassRefExpr {
|
|
|
1661
1737
|
* @alpha
|
|
1662
1738
|
*/
|
|
1663
1739
|
export class TableValuedFuncExpr extends ClassRefExpr {
|
|
1664
|
-
|
|
1740
|
+
schemaName;
|
|
1741
|
+
memberFunc;
|
|
1742
|
+
alias;
|
|
1743
|
+
static type = ExprType.TableValuedFunc;
|
|
1665
1744
|
constructor(schemaName, memberFunc, alias) {
|
|
1666
1745
|
super(TableValuedFuncExpr.type);
|
|
1667
1746
|
this.schemaName = schemaName;
|
|
@@ -1692,7 +1771,13 @@ export class TableValuedFuncExpr extends ClassRefExpr {
|
|
|
1692
1771
|
* @alpha
|
|
1693
1772
|
*/
|
|
1694
1773
|
export class ClassNameExpr extends ClassRefExpr {
|
|
1695
|
-
|
|
1774
|
+
schemaNameOrAlias;
|
|
1775
|
+
className;
|
|
1776
|
+
tablespace;
|
|
1777
|
+
alias;
|
|
1778
|
+
polymorphicInfo;
|
|
1779
|
+
memberFunc;
|
|
1780
|
+
static type = ExprType.ClassName;
|
|
1696
1781
|
constructor(schemaNameOrAlias, className, tablespace, alias, polymorphicInfo, memberFunc) {
|
|
1697
1782
|
super(ClassNameExpr.type);
|
|
1698
1783
|
this.schemaNameOrAlias = schemaNameOrAlias;
|
|
@@ -1768,7 +1853,11 @@ export class ClassNameExpr extends ClassRefExpr {
|
|
|
1768
1853
|
* @alpha
|
|
1769
1854
|
*/
|
|
1770
1855
|
export class UpdateStatementExpr extends StatementExpr {
|
|
1771
|
-
|
|
1856
|
+
className;
|
|
1857
|
+
assignement;
|
|
1858
|
+
where;
|
|
1859
|
+
options;
|
|
1860
|
+
static type = ExprType.UpdateStatement;
|
|
1772
1861
|
constructor(className, assignement, where, options) {
|
|
1773
1862
|
super(UpdateStatementExpr.type);
|
|
1774
1863
|
this.className = className;
|
|
@@ -1815,7 +1904,8 @@ export class UpdateStatementExpr extends StatementExpr {
|
|
|
1815
1904
|
* @alpha
|
|
1816
1905
|
*/
|
|
1817
1906
|
export class ECSqlOptionsClauseExpr extends Expr {
|
|
1818
|
-
|
|
1907
|
+
options;
|
|
1908
|
+
static type = ExprType.ECSqlOptionsClause;
|
|
1819
1909
|
constructor(options) {
|
|
1820
1910
|
super(ECSqlOptionsClauseExpr.type);
|
|
1821
1911
|
this.options = options;
|
|
@@ -1849,7 +1939,9 @@ export class ECSqlOptionsClauseExpr extends Expr {
|
|
|
1849
1939
|
* @alpha
|
|
1850
1940
|
*/
|
|
1851
1941
|
export class AssignmentExpr extends Expr {
|
|
1852
|
-
|
|
1942
|
+
propertyName;
|
|
1943
|
+
valueExpr;
|
|
1944
|
+
static type = ExprType.Assignment;
|
|
1853
1945
|
constructor(propertyName, valueExpr) {
|
|
1854
1946
|
super(SetClauseExpr.type);
|
|
1855
1947
|
this.propertyName = propertyName;
|
|
@@ -1875,7 +1967,8 @@ export class AssignmentExpr extends Expr {
|
|
|
1875
1967
|
* @alpha
|
|
1876
1968
|
*/
|
|
1877
1969
|
export class SetClauseExpr extends Expr {
|
|
1878
|
-
|
|
1970
|
+
assignments;
|
|
1971
|
+
static type = ExprType.SetClause;
|
|
1879
1972
|
constructor(assignments) {
|
|
1880
1973
|
super(SetClauseExpr.type);
|
|
1881
1974
|
this.assignments = assignments;
|
|
@@ -1910,7 +2003,10 @@ export class SetClauseExpr extends Expr {
|
|
|
1910
2003
|
* @alpha
|
|
1911
2004
|
*/
|
|
1912
2005
|
export class IIFExpr extends ValueExpr {
|
|
1913
|
-
|
|
2006
|
+
whenExpr;
|
|
2007
|
+
thenExpr;
|
|
2008
|
+
elseExpr;
|
|
2009
|
+
static type = ExprType.IIF;
|
|
1914
2010
|
constructor(whenExpr, thenExpr, elseExpr) {
|
|
1915
2011
|
super(IIFExpr.type);
|
|
1916
2012
|
this.whenExpr = whenExpr;
|
|
@@ -1942,7 +2038,9 @@ export class IIFExpr extends ValueExpr {
|
|
|
1942
2038
|
* @alpha
|
|
1943
2039
|
*/
|
|
1944
2040
|
export class SearchCaseExpr extends ValueExpr {
|
|
1945
|
-
|
|
2041
|
+
whenThenList;
|
|
2042
|
+
elseExpr;
|
|
2043
|
+
static type = ExprType.SearchCase;
|
|
1946
2044
|
constructor(whenThenList, elseExpr) {
|
|
1947
2045
|
super(SearchCaseExpr.type);
|
|
1948
2046
|
this.whenThenList = whenThenList;
|
|
@@ -1998,7 +2096,10 @@ export class SearchCaseExpr extends ValueExpr {
|
|
|
1998
2096
|
* @alpha
|
|
1999
2097
|
*/
|
|
2000
2098
|
export class BinaryValueExpr extends ValueExpr {
|
|
2001
|
-
|
|
2099
|
+
op;
|
|
2100
|
+
lhsExpr;
|
|
2101
|
+
rhsExpr;
|
|
2102
|
+
static type = ExprType.BinaryValue;
|
|
2002
2103
|
constructor(op, lhsExpr, rhsExpr) {
|
|
2003
2104
|
super(BinaryValueExpr.type);
|
|
2004
2105
|
this.op = op;
|
|
@@ -2027,7 +2128,9 @@ export class BinaryValueExpr extends ValueExpr {
|
|
|
2027
2128
|
* @alpha
|
|
2028
2129
|
*/
|
|
2029
2130
|
export class CastExpr extends ValueExpr {
|
|
2030
|
-
|
|
2131
|
+
valueExpr;
|
|
2132
|
+
targetType;
|
|
2133
|
+
static type = ExprType.Cast;
|
|
2031
2134
|
constructor(valueExpr, targetType) {
|
|
2032
2135
|
super(CastExpr.type);
|
|
2033
2136
|
this.valueExpr = valueExpr;
|
|
@@ -2058,7 +2161,9 @@ export class CastExpr extends ValueExpr {
|
|
|
2058
2161
|
* @alpha
|
|
2059
2162
|
*/
|
|
2060
2163
|
export class MemberFuncCallExpr extends Expr {
|
|
2061
|
-
|
|
2164
|
+
functionName;
|
|
2165
|
+
args;
|
|
2166
|
+
static type = ExprType.MemberFuncCall;
|
|
2062
2167
|
constructor(functionName, args) {
|
|
2063
2168
|
super(MemberFuncCallExpr.type);
|
|
2064
2169
|
this.functionName = functionName;
|
|
@@ -2091,7 +2196,10 @@ export class MemberFuncCallExpr extends Expr {
|
|
|
2091
2196
|
* @alpha
|
|
2092
2197
|
*/
|
|
2093
2198
|
export class FuncCallExpr extends ValueExpr {
|
|
2094
|
-
|
|
2199
|
+
functionName;
|
|
2200
|
+
args;
|
|
2201
|
+
allOrDistinct;
|
|
2202
|
+
static type = ExprType.FuncCall;
|
|
2095
2203
|
constructor(functionName, args, allOrDistinct) {
|
|
2096
2204
|
super(FuncCallExpr.type);
|
|
2097
2205
|
this.functionName = functionName;
|
|
@@ -2232,7 +2340,8 @@ export class FuncCallExpr extends ValueExpr {
|
|
|
2232
2340
|
* @alpha
|
|
2233
2341
|
*/
|
|
2234
2342
|
export class ParameterExpr extends ValueExpr {
|
|
2235
|
-
|
|
2343
|
+
name;
|
|
2344
|
+
static type = ExprType.Parameter;
|
|
2236
2345
|
constructor(name) {
|
|
2237
2346
|
super(ParameterExpr.type);
|
|
2238
2347
|
this.name = name;
|
|
@@ -2258,7 +2367,9 @@ export class ParameterExpr extends ValueExpr {
|
|
|
2258
2367
|
* @alpha
|
|
2259
2368
|
*/
|
|
2260
2369
|
export class UnaryValueExpr extends ValueExpr {
|
|
2261
|
-
|
|
2370
|
+
op;
|
|
2371
|
+
valueExpr;
|
|
2372
|
+
static type = ExprType.Unary;
|
|
2262
2373
|
constructor(op, valueExpr) {
|
|
2263
2374
|
super(UnaryValueExpr.type);
|
|
2264
2375
|
this.op = op;
|
|
@@ -2286,7 +2397,9 @@ export class UnaryValueExpr extends ValueExpr {
|
|
|
2286
2397
|
* @alpha
|
|
2287
2398
|
*/
|
|
2288
2399
|
export class LiteralExpr extends ValueExpr {
|
|
2289
|
-
|
|
2400
|
+
valueType;
|
|
2401
|
+
rawValue;
|
|
2402
|
+
static type = ExprType.Literal;
|
|
2290
2403
|
constructor(valueType, rawValue) {
|
|
2291
2404
|
super(LiteralExpr.type);
|
|
2292
2405
|
this.valueType = valueType;
|
|
@@ -2328,7 +2441,8 @@ export class LiteralExpr extends ValueExpr {
|
|
|
2328
2441
|
* @alpha
|
|
2329
2442
|
*/
|
|
2330
2443
|
export class PropertyNameExpr extends ValueExpr {
|
|
2331
|
-
|
|
2444
|
+
propertyPath;
|
|
2445
|
+
static type = ExprType.PropertyName;
|
|
2332
2446
|
constructor(propertyPath) {
|
|
2333
2447
|
super(PropertyNameExpr.type);
|
|
2334
2448
|
this.propertyPath = propertyPath;
|
|
@@ -2357,8 +2471,12 @@ export class PropertyNameExpr extends ValueExpr {
|
|
|
2357
2471
|
* @alpha
|
|
2358
2472
|
*/
|
|
2359
2473
|
export class NavValueCreationFuncExpr extends ValueExpr {
|
|
2360
|
-
|
|
2361
|
-
|
|
2474
|
+
columnRefExp;
|
|
2475
|
+
idArgExp;
|
|
2476
|
+
classNameExp;
|
|
2477
|
+
relECClassIdExp;
|
|
2478
|
+
static type = ExprType.NavValueCreationFunc;
|
|
2479
|
+
static navValueCreationFuncExprName = "NAVIGATION_VALUE";
|
|
2362
2480
|
constructor(columnRefExp, idArgExp, classNameExp, relECClassIdExp) {
|
|
2363
2481
|
super(NavValueCreationFuncExpr.type);
|
|
2364
2482
|
this.columnRefExp = columnRefExp;
|