@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/cjs/ECSqlAst.js
CHANGED
|
@@ -131,6 +131,7 @@ var ExprType;
|
|
|
131
131
|
* @alpha
|
|
132
132
|
*/
|
|
133
133
|
class ExprFactory {
|
|
134
|
+
provider;
|
|
134
135
|
constructor(provider) {
|
|
135
136
|
this.provider = provider;
|
|
136
137
|
}
|
|
@@ -144,6 +145,7 @@ exports.ExprFactory = ExprFactory;
|
|
|
144
145
|
* @alpha
|
|
145
146
|
*/
|
|
146
147
|
class Expr {
|
|
148
|
+
expType;
|
|
147
149
|
constructor(expType) {
|
|
148
150
|
this.expType = expType;
|
|
149
151
|
}
|
|
@@ -255,7 +257,7 @@ exports.ComputedExpr = ComputedExpr;
|
|
|
255
257
|
* @alpha
|
|
256
258
|
*/
|
|
257
259
|
class BooleanExpr extends ComputedExpr {
|
|
258
|
-
static
|
|
260
|
+
static deserializableIds = [NativeExpIds.BinaryBoolean, NativeExpIds.BooleanFactor, NativeExpIds.SubqueryTest, NativeExpIds.AllOrAny, NativeExpIds.BooleanFactor];
|
|
259
261
|
static deserialize(node) {
|
|
260
262
|
if (node.id === NativeExpIds.BinaryBoolean) {
|
|
261
263
|
const op = node.op;
|
|
@@ -308,7 +310,7 @@ exports.BooleanExpr = BooleanExpr;
|
|
|
308
310
|
* @alpha
|
|
309
311
|
*/
|
|
310
312
|
class ValueExpr extends ComputedExpr {
|
|
311
|
-
static
|
|
313
|
+
static deserializableIds = [
|
|
312
314
|
NativeExpIds.LiteralValue,
|
|
313
315
|
NativeExpIds.Parameter,
|
|
314
316
|
NativeExpIds.FunctionCall,
|
|
@@ -320,7 +322,7 @@ class ValueExpr extends ComputedExpr {
|
|
|
320
322
|
NativeExpIds.PropertyName,
|
|
321
323
|
NativeExpIds.Subquery,
|
|
322
324
|
NativeExpIds.NavValueCreationFunc,
|
|
323
|
-
];
|
|
325
|
+
];
|
|
324
326
|
static deserialize(node) {
|
|
325
327
|
if (node.id === NativeExpIds.UnaryValue) {
|
|
326
328
|
return UnaryValueExpr.deserialize(node);
|
|
@@ -370,13 +372,13 @@ exports.ValueExpr = ValueExpr;
|
|
|
370
372
|
* @alpha
|
|
371
373
|
*/
|
|
372
374
|
class ClassRefExpr extends Expr {
|
|
373
|
-
static
|
|
375
|
+
static deserializableIds = [
|
|
374
376
|
NativeExpIds.ClassName,
|
|
375
377
|
NativeExpIds.SubqueryRef,
|
|
376
378
|
NativeExpIds.UsingRelationshipJoinExp,
|
|
377
379
|
NativeExpIds.QualifiedJoin,
|
|
378
380
|
NativeExpIds.CommonTableBlockName,
|
|
379
|
-
];
|
|
381
|
+
];
|
|
380
382
|
static deserialize(node) {
|
|
381
383
|
if (node.id === NativeExpIds.ClassName) {
|
|
382
384
|
return ClassNameExpr.deserialize(node);
|
|
@@ -405,6 +407,10 @@ exports.ClassRefExpr = ClassRefExpr;
|
|
|
405
407
|
* @alpha
|
|
406
408
|
*/
|
|
407
409
|
class ECSqlWriter {
|
|
410
|
+
options;
|
|
411
|
+
_tokens = [];
|
|
412
|
+
_currentIndent = 0;
|
|
413
|
+
_isNewLine = false;
|
|
408
414
|
constructor(options = {
|
|
409
415
|
multiline: false,
|
|
410
416
|
spaceAfterComma: true,
|
|
@@ -414,9 +420,6 @@ class ECSqlWriter {
|
|
|
414
420
|
indent: { size: 3, char: " " },
|
|
415
421
|
}) {
|
|
416
422
|
this.options = options;
|
|
417
|
-
this._tokens = [];
|
|
418
|
-
this._currentIndent = 0;
|
|
419
|
-
this._isNewLine = false;
|
|
420
423
|
}
|
|
421
424
|
indent() {
|
|
422
425
|
this._currentIndent++;
|
|
@@ -504,7 +507,9 @@ exports.ECSqlWriter = ECSqlWriter;
|
|
|
504
507
|
* @alpha
|
|
505
508
|
*/
|
|
506
509
|
class DerivedPropertyExpr extends Expr {
|
|
507
|
-
|
|
510
|
+
computedExpr;
|
|
511
|
+
alias;
|
|
512
|
+
static type = ExprType.DerivedProperty;
|
|
508
513
|
constructor(computedExpr, alias) {
|
|
509
514
|
super(DerivedPropertyExpr.type);
|
|
510
515
|
this.computedExpr = computedExpr;
|
|
@@ -533,7 +538,10 @@ exports.DerivedPropertyExpr = DerivedPropertyExpr;
|
|
|
533
538
|
* @alpha
|
|
534
539
|
*/
|
|
535
540
|
class DeleteStatementExpr extends StatementExpr {
|
|
536
|
-
|
|
541
|
+
className;
|
|
542
|
+
where;
|
|
543
|
+
options;
|
|
544
|
+
static type = ExprType.DeleteStatement;
|
|
537
545
|
constructor(className, where, options) {
|
|
538
546
|
super(DeleteStatementExpr.type);
|
|
539
547
|
this.className = className;
|
|
@@ -579,7 +587,10 @@ exports.DeleteStatementExpr = DeleteStatementExpr;
|
|
|
579
587
|
* @alpha
|
|
580
588
|
*/
|
|
581
589
|
class InsertStatementExpr extends StatementExpr {
|
|
582
|
-
|
|
590
|
+
className;
|
|
591
|
+
values;
|
|
592
|
+
propertyNames;
|
|
593
|
+
static type = ExprType.InsertStatement;
|
|
583
594
|
constructor(className, values, propertyNames) {
|
|
584
595
|
super(InsertStatementExpr.type);
|
|
585
596
|
this.className = className;
|
|
@@ -643,7 +654,11 @@ exports.InsertStatementExpr = InsertStatementExpr;
|
|
|
643
654
|
* @alpha
|
|
644
655
|
*/
|
|
645
656
|
class QualifiedJoinExpr extends ClassRefExpr {
|
|
646
|
-
|
|
657
|
+
joinType;
|
|
658
|
+
from;
|
|
659
|
+
to;
|
|
660
|
+
spec;
|
|
661
|
+
static type = ExprType.QualifiedJoin;
|
|
647
662
|
constructor(joinType, from, to, spec) {
|
|
648
663
|
super(QualifiedJoinExpr.type);
|
|
649
664
|
this.joinType = joinType;
|
|
@@ -725,7 +740,11 @@ exports.QualifiedJoinExpr = QualifiedJoinExpr;
|
|
|
725
740
|
* @alpha
|
|
726
741
|
*/
|
|
727
742
|
class UsingRelationshipJoinExpr extends ClassRefExpr {
|
|
728
|
-
|
|
743
|
+
fromClassName;
|
|
744
|
+
toClassName;
|
|
745
|
+
toRelClassName;
|
|
746
|
+
direction;
|
|
747
|
+
static type = ExprType.UsingRelationshipJoin;
|
|
729
748
|
constructor(fromClassName, toClassName, toRelClassName, direction) {
|
|
730
749
|
super(UsingRelationshipJoinExpr.type);
|
|
731
750
|
this.fromClassName = fromClassName;
|
|
@@ -768,7 +787,9 @@ exports.UsingRelationshipJoinExpr = UsingRelationshipJoinExpr;
|
|
|
768
787
|
* @alpha
|
|
769
788
|
*/
|
|
770
789
|
class SubqueryTestExpr extends BooleanExpr {
|
|
771
|
-
|
|
790
|
+
op;
|
|
791
|
+
query;
|
|
792
|
+
static type = ExprType.SubqueryTest;
|
|
772
793
|
constructor(op, query) {
|
|
773
794
|
super(SubqueryTestExpr.type);
|
|
774
795
|
this.op = op;
|
|
@@ -796,7 +817,10 @@ exports.SubqueryTestExpr = SubqueryTestExpr;
|
|
|
796
817
|
* @alpha
|
|
797
818
|
*/
|
|
798
819
|
class SubqueryRefExpr extends ClassRefExpr {
|
|
799
|
-
|
|
820
|
+
query;
|
|
821
|
+
polymorphicInfo;
|
|
822
|
+
alias;
|
|
823
|
+
static type = ExprType.SubqueryRef;
|
|
800
824
|
constructor(query, polymorphicInfo, alias) {
|
|
801
825
|
super(SubqueryRefExpr.type);
|
|
802
826
|
this.query = query;
|
|
@@ -836,7 +860,9 @@ exports.SubqueryRefExpr = SubqueryRefExpr;
|
|
|
836
860
|
* @alpha
|
|
837
861
|
*/
|
|
838
862
|
class SelectStatementExpr extends StatementExpr {
|
|
839
|
-
|
|
863
|
+
singleSelect;
|
|
864
|
+
nextSelect;
|
|
865
|
+
static type = ExprType.SelectStatement;
|
|
840
866
|
constructor(singleSelect, nextSelect) {
|
|
841
867
|
super(SelectStatementExpr.type);
|
|
842
868
|
this.singleSelect = singleSelect;
|
|
@@ -885,7 +911,8 @@ exports.SelectStatementExpr = SelectStatementExpr;
|
|
|
885
911
|
* @alpha
|
|
886
912
|
*/
|
|
887
913
|
class SelectionClauseExpr extends Expr {
|
|
888
|
-
|
|
914
|
+
derivedPropertyList;
|
|
915
|
+
static type = ExprType.SelectionClause;
|
|
889
916
|
constructor(derivedPropertyList) {
|
|
890
917
|
super(SelectionClauseExpr.type);
|
|
891
918
|
this.derivedPropertyList = derivedPropertyList;
|
|
@@ -914,7 +941,8 @@ exports.SelectionClauseExpr = SelectionClauseExpr;
|
|
|
914
941
|
* @alpha
|
|
915
942
|
*/
|
|
916
943
|
class GroupByClauseExpr extends Expr {
|
|
917
|
-
|
|
944
|
+
exprList;
|
|
945
|
+
static type = ExprType.GroupByClause;
|
|
918
946
|
constructor(exprList) {
|
|
919
947
|
super(GroupByClauseExpr.type);
|
|
920
948
|
this.exprList = exprList;
|
|
@@ -947,7 +975,8 @@ exports.GroupByClauseExpr = GroupByClauseExpr;
|
|
|
947
975
|
* @alpha
|
|
948
976
|
*/
|
|
949
977
|
class HavingClauseExpr extends Expr {
|
|
950
|
-
|
|
978
|
+
filterExpr;
|
|
979
|
+
static type = ExprType.HavingClause;
|
|
951
980
|
constructor(filterExpr) {
|
|
952
981
|
super(HavingClauseExpr.type);
|
|
953
982
|
this.filterExpr = filterExpr;
|
|
@@ -973,7 +1002,8 @@ exports.HavingClauseExpr = HavingClauseExpr;
|
|
|
973
1002
|
* @alpha
|
|
974
1003
|
*/
|
|
975
1004
|
class FromClauseExpr extends Expr {
|
|
976
|
-
|
|
1005
|
+
classRefs;
|
|
1006
|
+
static type = ExprType.FromClause;
|
|
977
1007
|
constructor(classRefs) {
|
|
978
1008
|
super(FromClauseExpr.type);
|
|
979
1009
|
this.classRefs = classRefs;
|
|
@@ -1004,7 +1034,8 @@ exports.FromClauseExpr = FromClauseExpr;
|
|
|
1004
1034
|
* @alpha
|
|
1005
1035
|
*/
|
|
1006
1036
|
class WhereClauseExp extends Expr {
|
|
1007
|
-
|
|
1037
|
+
filterExpr;
|
|
1038
|
+
static type = ExprType.WhereClause;
|
|
1008
1039
|
constructor(filterExpr) {
|
|
1009
1040
|
super(WhereClauseExp.type);
|
|
1010
1041
|
this.filterExpr = filterExpr;
|
|
@@ -1030,7 +1061,10 @@ exports.WhereClauseExp = WhereClauseExp;
|
|
|
1030
1061
|
* @alpha
|
|
1031
1062
|
*/
|
|
1032
1063
|
class OrderBySpecExpr extends Expr {
|
|
1033
|
-
|
|
1064
|
+
term;
|
|
1065
|
+
sortDirection;
|
|
1066
|
+
nulls;
|
|
1067
|
+
static type = ExprType.OrderBySpec;
|
|
1034
1068
|
constructor(term, sortDirection, nulls) {
|
|
1035
1069
|
super(OrderBySpecExpr.type);
|
|
1036
1070
|
this.term = term;
|
|
@@ -1066,7 +1100,8 @@ exports.OrderBySpecExpr = OrderBySpecExpr;
|
|
|
1066
1100
|
* @alpha
|
|
1067
1101
|
*/
|
|
1068
1102
|
class OrderByClauseExpr extends Expr {
|
|
1069
|
-
|
|
1103
|
+
terms;
|
|
1104
|
+
static type = ExprType.OrderByClause;
|
|
1070
1105
|
constructor(terms) {
|
|
1071
1106
|
super(OrderByClauseExpr.type);
|
|
1072
1107
|
this.terms = terms;
|
|
@@ -1099,7 +1134,9 @@ exports.OrderByClauseExpr = OrderByClauseExpr;
|
|
|
1099
1134
|
* @alpha
|
|
1100
1135
|
*/
|
|
1101
1136
|
class LimitClauseExpr extends Expr {
|
|
1102
|
-
|
|
1137
|
+
limit;
|
|
1138
|
+
offset;
|
|
1139
|
+
static type = ExprType.LimitClause;
|
|
1103
1140
|
constructor(limit, offset) {
|
|
1104
1141
|
super(LimitClauseExpr.type);
|
|
1105
1142
|
this.limit = limit;
|
|
@@ -1135,7 +1172,16 @@ exports.LimitClauseExpr = LimitClauseExpr;
|
|
|
1135
1172
|
* @alpha
|
|
1136
1173
|
*/
|
|
1137
1174
|
class SelectExpr extends Expr {
|
|
1138
|
-
|
|
1175
|
+
selection;
|
|
1176
|
+
rowQuantifier;
|
|
1177
|
+
from;
|
|
1178
|
+
where;
|
|
1179
|
+
groupBy;
|
|
1180
|
+
having;
|
|
1181
|
+
orderBy;
|
|
1182
|
+
limit;
|
|
1183
|
+
options;
|
|
1184
|
+
static type = ExprType.Select;
|
|
1139
1185
|
constructor(selection, rowQuantifier, from, where, groupBy, having, orderBy, limit, options) {
|
|
1140
1186
|
super(SelectExpr.type);
|
|
1141
1187
|
this.selection = selection;
|
|
@@ -1229,7 +1275,8 @@ exports.SelectExpr = SelectExpr;
|
|
|
1229
1275
|
* @alpha
|
|
1230
1276
|
*/
|
|
1231
1277
|
class SubqueryExpr extends ValueExpr {
|
|
1232
|
-
|
|
1278
|
+
query;
|
|
1279
|
+
static type = ExprType.Subquery;
|
|
1233
1280
|
constructor(query) {
|
|
1234
1281
|
super(SubqueryExpr.type);
|
|
1235
1282
|
this.query = query;
|
|
@@ -1259,7 +1306,11 @@ exports.SubqueryExpr = SubqueryExpr;
|
|
|
1259
1306
|
* @alpha
|
|
1260
1307
|
*/
|
|
1261
1308
|
class BinaryBooleanExpr extends BooleanExpr {
|
|
1262
|
-
|
|
1309
|
+
op;
|
|
1310
|
+
lhsExpr;
|
|
1311
|
+
rhsExpr;
|
|
1312
|
+
not;
|
|
1313
|
+
static type = ExprType.BinaryBoolean;
|
|
1263
1314
|
constructor(op, lhsExpr, rhsExpr, not) {
|
|
1264
1315
|
super(BinaryBooleanExpr.type);
|
|
1265
1316
|
this.op = op;
|
|
@@ -1291,7 +1342,9 @@ exports.BinaryBooleanExpr = BinaryBooleanExpr;
|
|
|
1291
1342
|
* @alpha
|
|
1292
1343
|
*/
|
|
1293
1344
|
class IsNullExpr extends BooleanExpr {
|
|
1294
|
-
|
|
1345
|
+
operandExpr;
|
|
1346
|
+
not;
|
|
1347
|
+
static type = ExprType.IsNull;
|
|
1295
1348
|
constructor(operandExpr, not) {
|
|
1296
1349
|
super(IsNullExpr.type);
|
|
1297
1350
|
this.operandExpr = operandExpr;
|
|
@@ -1338,7 +1391,10 @@ exports.IsNullExpr = IsNullExpr;
|
|
|
1338
1391
|
* @alpha
|
|
1339
1392
|
*/
|
|
1340
1393
|
class IsOfTypeExpr extends BooleanExpr {
|
|
1341
|
-
|
|
1394
|
+
lhsExpr;
|
|
1395
|
+
typeNames;
|
|
1396
|
+
not;
|
|
1397
|
+
static type = ExprType.IsOfType;
|
|
1342
1398
|
constructor(lhsExpr, typeNames, not) {
|
|
1343
1399
|
super(IsOfTypeExpr.type);
|
|
1344
1400
|
this.lhsExpr = lhsExpr;
|
|
@@ -1389,7 +1445,8 @@ exports.IsOfTypeExpr = IsOfTypeExpr;
|
|
|
1389
1445
|
* @alpha
|
|
1390
1446
|
*/
|
|
1391
1447
|
class NotExpr extends BooleanExpr {
|
|
1392
|
-
|
|
1448
|
+
operandExpr;
|
|
1449
|
+
static type = ExprType.Not;
|
|
1393
1450
|
constructor(operandExpr) {
|
|
1394
1451
|
super(NotExpr.type);
|
|
1395
1452
|
this.operandExpr = operandExpr;
|
|
@@ -1418,7 +1475,10 @@ exports.NotExpr = NotExpr;
|
|
|
1418
1475
|
* @alpha
|
|
1419
1476
|
*/
|
|
1420
1477
|
class InExpr extends BooleanExpr {
|
|
1421
|
-
|
|
1478
|
+
lhsExpr;
|
|
1479
|
+
rhsExpr;
|
|
1480
|
+
not;
|
|
1481
|
+
static type = ExprType.In;
|
|
1422
1482
|
constructor(lhsExpr, rhsExpr, not) {
|
|
1423
1483
|
super(InExpr.type);
|
|
1424
1484
|
this.lhsExpr = lhsExpr;
|
|
@@ -1486,7 +1546,11 @@ exports.InExpr = InExpr;
|
|
|
1486
1546
|
* @alpha
|
|
1487
1547
|
*/
|
|
1488
1548
|
class LikeExpr extends BooleanExpr {
|
|
1489
|
-
|
|
1549
|
+
lhsExpr;
|
|
1550
|
+
patternExpr;
|
|
1551
|
+
escapeExpr;
|
|
1552
|
+
not;
|
|
1553
|
+
static type = ExprType.Like;
|
|
1490
1554
|
constructor(lhsExpr, patternExpr, escapeExpr, not) {
|
|
1491
1555
|
super(LikeExpr.type);
|
|
1492
1556
|
this.lhsExpr = lhsExpr;
|
|
@@ -1540,7 +1604,11 @@ exports.LikeExpr = LikeExpr;
|
|
|
1540
1604
|
* @alpha
|
|
1541
1605
|
*/
|
|
1542
1606
|
class BetweenExpr extends BooleanExpr {
|
|
1543
|
-
|
|
1607
|
+
lhsExpr;
|
|
1608
|
+
lowerBoundExpr;
|
|
1609
|
+
upperBoundExpr;
|
|
1610
|
+
not;
|
|
1611
|
+
static type = ExprType.Between;
|
|
1544
1612
|
constructor(lhsExpr, lowerBoundExpr, upperBoundExpr, not) {
|
|
1545
1613
|
super(BetweenExpr.type);
|
|
1546
1614
|
this.lhsExpr = lhsExpr;
|
|
@@ -1587,7 +1655,10 @@ exports.BetweenExpr = BetweenExpr;
|
|
|
1587
1655
|
* @alpha
|
|
1588
1656
|
*/
|
|
1589
1657
|
class CteExpr extends StatementExpr {
|
|
1590
|
-
|
|
1658
|
+
cteBlocks;
|
|
1659
|
+
query;
|
|
1660
|
+
recursive;
|
|
1661
|
+
static type = ExprType.Cte;
|
|
1591
1662
|
constructor(cteBlocks, query, recursive) {
|
|
1592
1663
|
super(CteExpr.type);
|
|
1593
1664
|
this.cteBlocks = cteBlocks;
|
|
@@ -1627,7 +1698,10 @@ exports.CteExpr = CteExpr;
|
|
|
1627
1698
|
* @alpha
|
|
1628
1699
|
*/
|
|
1629
1700
|
class CteBlockExpr extends Expr {
|
|
1630
|
-
|
|
1701
|
+
name;
|
|
1702
|
+
query;
|
|
1703
|
+
props;
|
|
1704
|
+
static type = ExprType.CteBlock;
|
|
1631
1705
|
constructor(name, query, props) {
|
|
1632
1706
|
super(CteBlockExpr.type);
|
|
1633
1707
|
this.name = name;
|
|
@@ -1673,7 +1747,9 @@ exports.CteBlockExpr = CteBlockExpr;
|
|
|
1673
1747
|
* @alpha
|
|
1674
1748
|
*/
|
|
1675
1749
|
class CteBlockRefExpr extends ClassRefExpr {
|
|
1676
|
-
|
|
1750
|
+
name;
|
|
1751
|
+
alias;
|
|
1752
|
+
static type = ExprType.CteBlockRef;
|
|
1677
1753
|
constructor(name, alias) {
|
|
1678
1754
|
super(CteBlockRefExpr.type);
|
|
1679
1755
|
this.name = name;
|
|
@@ -1701,7 +1777,10 @@ exports.CteBlockRefExpr = CteBlockRefExpr;
|
|
|
1701
1777
|
* @alpha
|
|
1702
1778
|
*/
|
|
1703
1779
|
class TableValuedFuncExpr extends ClassRefExpr {
|
|
1704
|
-
|
|
1780
|
+
schemaName;
|
|
1781
|
+
memberFunc;
|
|
1782
|
+
alias;
|
|
1783
|
+
static type = ExprType.TableValuedFunc;
|
|
1705
1784
|
constructor(schemaName, memberFunc, alias) {
|
|
1706
1785
|
super(TableValuedFuncExpr.type);
|
|
1707
1786
|
this.schemaName = schemaName;
|
|
@@ -1733,7 +1812,13 @@ exports.TableValuedFuncExpr = TableValuedFuncExpr;
|
|
|
1733
1812
|
* @alpha
|
|
1734
1813
|
*/
|
|
1735
1814
|
class ClassNameExpr extends ClassRefExpr {
|
|
1736
|
-
|
|
1815
|
+
schemaNameOrAlias;
|
|
1816
|
+
className;
|
|
1817
|
+
tablespace;
|
|
1818
|
+
alias;
|
|
1819
|
+
polymorphicInfo;
|
|
1820
|
+
memberFunc;
|
|
1821
|
+
static type = ExprType.ClassName;
|
|
1737
1822
|
constructor(schemaNameOrAlias, className, tablespace, alias, polymorphicInfo, memberFunc) {
|
|
1738
1823
|
super(ClassNameExpr.type);
|
|
1739
1824
|
this.schemaNameOrAlias = schemaNameOrAlias;
|
|
@@ -1810,7 +1895,11 @@ exports.ClassNameExpr = ClassNameExpr;
|
|
|
1810
1895
|
* @alpha
|
|
1811
1896
|
*/
|
|
1812
1897
|
class UpdateStatementExpr extends StatementExpr {
|
|
1813
|
-
|
|
1898
|
+
className;
|
|
1899
|
+
assignement;
|
|
1900
|
+
where;
|
|
1901
|
+
options;
|
|
1902
|
+
static type = ExprType.UpdateStatement;
|
|
1814
1903
|
constructor(className, assignement, where, options) {
|
|
1815
1904
|
super(UpdateStatementExpr.type);
|
|
1816
1905
|
this.className = className;
|
|
@@ -1858,7 +1947,8 @@ exports.UpdateStatementExpr = UpdateStatementExpr;
|
|
|
1858
1947
|
* @alpha
|
|
1859
1948
|
*/
|
|
1860
1949
|
class ECSqlOptionsClauseExpr extends Expr {
|
|
1861
|
-
|
|
1950
|
+
options;
|
|
1951
|
+
static type = ExprType.ECSqlOptionsClause;
|
|
1862
1952
|
constructor(options) {
|
|
1863
1953
|
super(ECSqlOptionsClauseExpr.type);
|
|
1864
1954
|
this.options = options;
|
|
@@ -1893,7 +1983,9 @@ exports.ECSqlOptionsClauseExpr = ECSqlOptionsClauseExpr;
|
|
|
1893
1983
|
* @alpha
|
|
1894
1984
|
*/
|
|
1895
1985
|
class AssignmentExpr extends Expr {
|
|
1896
|
-
|
|
1986
|
+
propertyName;
|
|
1987
|
+
valueExpr;
|
|
1988
|
+
static type = ExprType.Assignment;
|
|
1897
1989
|
constructor(propertyName, valueExpr) {
|
|
1898
1990
|
super(SetClauseExpr.type);
|
|
1899
1991
|
this.propertyName = propertyName;
|
|
@@ -1920,7 +2012,8 @@ exports.AssignmentExpr = AssignmentExpr;
|
|
|
1920
2012
|
* @alpha
|
|
1921
2013
|
*/
|
|
1922
2014
|
class SetClauseExpr extends Expr {
|
|
1923
|
-
|
|
2015
|
+
assignments;
|
|
2016
|
+
static type = ExprType.SetClause;
|
|
1924
2017
|
constructor(assignments) {
|
|
1925
2018
|
super(SetClauseExpr.type);
|
|
1926
2019
|
this.assignments = assignments;
|
|
@@ -1956,7 +2049,10 @@ exports.SetClauseExpr = SetClauseExpr;
|
|
|
1956
2049
|
* @alpha
|
|
1957
2050
|
*/
|
|
1958
2051
|
class IIFExpr extends ValueExpr {
|
|
1959
|
-
|
|
2052
|
+
whenExpr;
|
|
2053
|
+
thenExpr;
|
|
2054
|
+
elseExpr;
|
|
2055
|
+
static type = ExprType.IIF;
|
|
1960
2056
|
constructor(whenExpr, thenExpr, elseExpr) {
|
|
1961
2057
|
super(IIFExpr.type);
|
|
1962
2058
|
this.whenExpr = whenExpr;
|
|
@@ -1989,7 +2085,9 @@ exports.IIFExpr = IIFExpr;
|
|
|
1989
2085
|
* @alpha
|
|
1990
2086
|
*/
|
|
1991
2087
|
class SearchCaseExpr extends ValueExpr {
|
|
1992
|
-
|
|
2088
|
+
whenThenList;
|
|
2089
|
+
elseExpr;
|
|
2090
|
+
static type = ExprType.SearchCase;
|
|
1993
2091
|
constructor(whenThenList, elseExpr) {
|
|
1994
2092
|
super(SearchCaseExpr.type);
|
|
1995
2093
|
this.whenThenList = whenThenList;
|
|
@@ -2046,7 +2144,10 @@ exports.SearchCaseExpr = SearchCaseExpr;
|
|
|
2046
2144
|
* @alpha
|
|
2047
2145
|
*/
|
|
2048
2146
|
class BinaryValueExpr extends ValueExpr {
|
|
2049
|
-
|
|
2147
|
+
op;
|
|
2148
|
+
lhsExpr;
|
|
2149
|
+
rhsExpr;
|
|
2150
|
+
static type = ExprType.BinaryValue;
|
|
2050
2151
|
constructor(op, lhsExpr, rhsExpr) {
|
|
2051
2152
|
super(BinaryValueExpr.type);
|
|
2052
2153
|
this.op = op;
|
|
@@ -2076,7 +2177,9 @@ exports.BinaryValueExpr = BinaryValueExpr;
|
|
|
2076
2177
|
* @alpha
|
|
2077
2178
|
*/
|
|
2078
2179
|
class CastExpr extends ValueExpr {
|
|
2079
|
-
|
|
2180
|
+
valueExpr;
|
|
2181
|
+
targetType;
|
|
2182
|
+
static type = ExprType.Cast;
|
|
2080
2183
|
constructor(valueExpr, targetType) {
|
|
2081
2184
|
super(CastExpr.type);
|
|
2082
2185
|
this.valueExpr = valueExpr;
|
|
@@ -2108,7 +2211,9 @@ exports.CastExpr = CastExpr;
|
|
|
2108
2211
|
* @alpha
|
|
2109
2212
|
*/
|
|
2110
2213
|
class MemberFuncCallExpr extends Expr {
|
|
2111
|
-
|
|
2214
|
+
functionName;
|
|
2215
|
+
args;
|
|
2216
|
+
static type = ExprType.MemberFuncCall;
|
|
2112
2217
|
constructor(functionName, args) {
|
|
2113
2218
|
super(MemberFuncCallExpr.type);
|
|
2114
2219
|
this.functionName = functionName;
|
|
@@ -2142,7 +2247,10 @@ exports.MemberFuncCallExpr = MemberFuncCallExpr;
|
|
|
2142
2247
|
* @alpha
|
|
2143
2248
|
*/
|
|
2144
2249
|
class FuncCallExpr extends ValueExpr {
|
|
2145
|
-
|
|
2250
|
+
functionName;
|
|
2251
|
+
args;
|
|
2252
|
+
allOrDistinct;
|
|
2253
|
+
static type = ExprType.FuncCall;
|
|
2146
2254
|
constructor(functionName, args, allOrDistinct) {
|
|
2147
2255
|
super(FuncCallExpr.type);
|
|
2148
2256
|
this.functionName = functionName;
|
|
@@ -2284,7 +2392,8 @@ exports.FuncCallExpr = FuncCallExpr;
|
|
|
2284
2392
|
* @alpha
|
|
2285
2393
|
*/
|
|
2286
2394
|
class ParameterExpr extends ValueExpr {
|
|
2287
|
-
|
|
2395
|
+
name;
|
|
2396
|
+
static type = ExprType.Parameter;
|
|
2288
2397
|
constructor(name) {
|
|
2289
2398
|
super(ParameterExpr.type);
|
|
2290
2399
|
this.name = name;
|
|
@@ -2311,7 +2420,9 @@ exports.ParameterExpr = ParameterExpr;
|
|
|
2311
2420
|
* @alpha
|
|
2312
2421
|
*/
|
|
2313
2422
|
class UnaryValueExpr extends ValueExpr {
|
|
2314
|
-
|
|
2423
|
+
op;
|
|
2424
|
+
valueExpr;
|
|
2425
|
+
static type = ExprType.Unary;
|
|
2315
2426
|
constructor(op, valueExpr) {
|
|
2316
2427
|
super(UnaryValueExpr.type);
|
|
2317
2428
|
this.op = op;
|
|
@@ -2340,7 +2451,9 @@ exports.UnaryValueExpr = UnaryValueExpr;
|
|
|
2340
2451
|
* @alpha
|
|
2341
2452
|
*/
|
|
2342
2453
|
class LiteralExpr extends ValueExpr {
|
|
2343
|
-
|
|
2454
|
+
valueType;
|
|
2455
|
+
rawValue;
|
|
2456
|
+
static type = ExprType.Literal;
|
|
2344
2457
|
constructor(valueType, rawValue) {
|
|
2345
2458
|
super(LiteralExpr.type);
|
|
2346
2459
|
this.valueType = valueType;
|
|
@@ -2383,7 +2496,8 @@ exports.LiteralExpr = LiteralExpr;
|
|
|
2383
2496
|
* @alpha
|
|
2384
2497
|
*/
|
|
2385
2498
|
class PropertyNameExpr extends ValueExpr {
|
|
2386
|
-
|
|
2499
|
+
propertyPath;
|
|
2500
|
+
static type = ExprType.PropertyName;
|
|
2387
2501
|
constructor(propertyPath) {
|
|
2388
2502
|
super(PropertyNameExpr.type);
|
|
2389
2503
|
this.propertyPath = propertyPath;
|
|
@@ -2413,8 +2527,12 @@ exports.PropertyNameExpr = PropertyNameExpr;
|
|
|
2413
2527
|
* @alpha
|
|
2414
2528
|
*/
|
|
2415
2529
|
class NavValueCreationFuncExpr extends ValueExpr {
|
|
2416
|
-
|
|
2417
|
-
|
|
2530
|
+
columnRefExp;
|
|
2531
|
+
idArgExp;
|
|
2532
|
+
classNameExp;
|
|
2533
|
+
relECClassIdExp;
|
|
2534
|
+
static type = ExprType.NavValueCreationFunc;
|
|
2535
|
+
static navValueCreationFuncExprName = "NAVIGATION_VALUE";
|
|
2418
2536
|
constructor(columnRefExp, idArgExp, classNameExp, relECClassIdExp) {
|
|
2419
2537
|
super(NavValueCreationFuncExpr.type);
|
|
2420
2538
|
this.columnRefExp = columnRefExp;
|