@itwin/ecsql-common 4.6.0-dev.9 → 4.7.0-dev.3
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/CHANGELOG.md +11 -1
- package/lib/cjs/ECSqlAst.d.ts +1 -1
- package/lib/cjs/ECSqlAst.d.ts.map +1 -1
- package/lib/cjs/ECSqlAst.js +51 -51
- package/lib/cjs/ECSqlAst.js.map +1 -1
- package/lib/esm/ECSqlAst.d.ts +1 -1
- package/lib/esm/ECSqlAst.d.ts.map +1 -1
- package/lib/esm/ECSqlAst.js +48 -96
- package/lib/esm/ECSqlAst.js.map +1 -1
- package/package.json +6 -6
package/lib/esm/ECSqlAst.js
CHANGED
|
@@ -246,7 +246,7 @@ export class ComputedExpr extends Expr {
|
|
|
246
246
|
* @see [[BinaryBooleanExpr]]
|
|
247
247
|
* @alpha
|
|
248
248
|
*/
|
|
249
|
-
class BooleanExpr extends ComputedExpr {
|
|
249
|
+
export class BooleanExpr extends ComputedExpr {
|
|
250
250
|
static deserialize(node) {
|
|
251
251
|
if (node.id === NativeExpIds.BinaryBoolean) {
|
|
252
252
|
const op = node.op;
|
|
@@ -283,7 +283,6 @@ class BooleanExpr extends ComputedExpr {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
BooleanExpr.deserializableIds = [NativeExpIds.BinaryBoolean, NativeExpIds.BooleanFactor, NativeExpIds.SubqueryTest, NativeExpIds.AllOrAny, NativeExpIds.BooleanFactor];
|
|
286
|
-
export { BooleanExpr };
|
|
287
286
|
/**
|
|
288
287
|
* Base class for all value expressions. Following is list of subclasses.
|
|
289
288
|
* @see [[SubqueryExpr]]
|
|
@@ -299,7 +298,7 @@ export { BooleanExpr };
|
|
|
299
298
|
* @see [[NavValueCreationFunc]]
|
|
300
299
|
* @alpha
|
|
301
300
|
*/
|
|
302
|
-
class ValueExpr extends ComputedExpr {
|
|
301
|
+
export class ValueExpr extends ComputedExpr {
|
|
303
302
|
static deserialize(node) {
|
|
304
303
|
if (node.id === NativeExpIds.UnaryValue) {
|
|
305
304
|
return UnaryValueExpr.deserialize(node);
|
|
@@ -349,7 +348,6 @@ ValueExpr.deserializableIds = [
|
|
|
349
348
|
NativeExpIds.Subquery,
|
|
350
349
|
NativeExpIds.NavValueCreationFunc,
|
|
351
350
|
];
|
|
352
|
-
export { ValueExpr };
|
|
353
351
|
/**
|
|
354
352
|
* Base class for expressions that can be used in FROM clause of a SELECT. Following list of this subclasses.
|
|
355
353
|
* @see [[ClassRefExpr]]
|
|
@@ -361,7 +359,7 @@ export { ValueExpr };
|
|
|
361
359
|
* @see [[TableValuedFuncExpr]]
|
|
362
360
|
* @alpha
|
|
363
361
|
*/
|
|
364
|
-
class ClassRefExpr extends Expr {
|
|
362
|
+
export class ClassRefExpr extends Expr {
|
|
365
363
|
static deserialize(node) {
|
|
366
364
|
if (node.id === NativeExpIds.ClassName) {
|
|
367
365
|
return ClassNameExpr.deserialize(node);
|
|
@@ -391,7 +389,6 @@ ClassRefExpr.deserializableIds = [
|
|
|
391
389
|
NativeExpIds.QualifiedJoin,
|
|
392
390
|
NativeExpIds.CommonTableBlockName,
|
|
393
391
|
];
|
|
394
|
-
export { ClassRefExpr };
|
|
395
392
|
/**
|
|
396
393
|
* Write expression tree to string
|
|
397
394
|
* @alpha
|
|
@@ -494,7 +491,7 @@ export class ECSqlWriter {
|
|
|
494
491
|
* Use to describe selection clause terms in a SELECT statements @see [[SelectionClauseExpr]] @see [[SelectExpr]]
|
|
495
492
|
* @alpha
|
|
496
493
|
*/
|
|
497
|
-
class DerivedPropertyExpr extends Expr {
|
|
494
|
+
export class DerivedPropertyExpr extends Expr {
|
|
498
495
|
constructor(computedExpr, alias) {
|
|
499
496
|
super(DerivedPropertyExpr.type);
|
|
500
497
|
this.computedExpr = computedExpr;
|
|
@@ -518,12 +515,11 @@ class DerivedPropertyExpr extends Expr {
|
|
|
518
515
|
}
|
|
519
516
|
}
|
|
520
517
|
DerivedPropertyExpr.type = ExprType.DerivedProperty;
|
|
521
|
-
export { DerivedPropertyExpr };
|
|
522
518
|
/**
|
|
523
519
|
* Describes a ECSQL delete statement.
|
|
524
520
|
* @alpha
|
|
525
521
|
*/
|
|
526
|
-
class DeleteStatementExpr extends StatementExpr {
|
|
522
|
+
export class DeleteStatementExpr extends StatementExpr {
|
|
527
523
|
constructor(className, where, options) {
|
|
528
524
|
super(DeleteStatementExpr.type);
|
|
529
525
|
this.className = className;
|
|
@@ -564,12 +560,11 @@ class DeleteStatementExpr extends StatementExpr {
|
|
|
564
560
|
}
|
|
565
561
|
}
|
|
566
562
|
DeleteStatementExpr.type = ExprType.DeleteStatement;
|
|
567
|
-
export { DeleteStatementExpr };
|
|
568
563
|
/**
|
|
569
564
|
* Describe a ECSQL Insert statement.
|
|
570
565
|
* @alpha
|
|
571
566
|
*/
|
|
572
|
-
class InsertStatementExpr extends StatementExpr {
|
|
567
|
+
export class InsertStatementExpr extends StatementExpr {
|
|
573
568
|
constructor(className, values, propertyNames) {
|
|
574
569
|
super(InsertStatementExpr.type);
|
|
575
570
|
this.className = className;
|
|
@@ -628,12 +623,11 @@ class InsertStatementExpr extends StatementExpr {
|
|
|
628
623
|
}
|
|
629
624
|
}
|
|
630
625
|
InsertStatementExpr.type = ExprType.InsertStatement;
|
|
631
|
-
export { InsertStatementExpr };
|
|
632
626
|
/**
|
|
633
627
|
* Describes a JOIN clause e.g. <classNameExpr> JOIN <classNameExpr> ON <joinspec>
|
|
634
628
|
* @alpha
|
|
635
629
|
*/
|
|
636
|
-
class QualifiedJoinExpr extends ClassRefExpr {
|
|
630
|
+
export class QualifiedJoinExpr extends ClassRefExpr {
|
|
637
631
|
constructor(joinType, from, to, spec) {
|
|
638
632
|
super(QualifiedJoinExpr.type);
|
|
639
633
|
this.joinType = joinType;
|
|
@@ -710,12 +704,11 @@ class QualifiedJoinExpr extends ClassRefExpr {
|
|
|
710
704
|
}
|
|
711
705
|
}
|
|
712
706
|
QualifiedJoinExpr.type = ExprType.QualifiedJoin;
|
|
713
|
-
export { QualifiedJoinExpr };
|
|
714
707
|
/**
|
|
715
708
|
* Describe a JOIN USING clause.
|
|
716
709
|
* @alpha
|
|
717
710
|
*/
|
|
718
|
-
class UsingRelationshipJoinExpr extends ClassRefExpr {
|
|
711
|
+
export class UsingRelationshipJoinExpr extends ClassRefExpr {
|
|
719
712
|
constructor(fromClassName, toClassName, toRelClassName, direction) {
|
|
720
713
|
super(UsingRelationshipJoinExpr.type);
|
|
721
714
|
this.fromClassName = fromClassName;
|
|
@@ -753,12 +746,11 @@ class UsingRelationshipJoinExpr extends ClassRefExpr {
|
|
|
753
746
|
}
|
|
754
747
|
}
|
|
755
748
|
UsingRelationshipJoinExpr.type = ExprType.UsingRelationshipJoin;
|
|
756
|
-
export { UsingRelationshipJoinExpr };
|
|
757
749
|
/**
|
|
758
750
|
* Describe subquery result test e.g. EXISTS(<subquery>)
|
|
759
751
|
* @alpha
|
|
760
752
|
*/
|
|
761
|
-
class SubqueryTestExpr extends BooleanExpr {
|
|
753
|
+
export class SubqueryTestExpr extends BooleanExpr {
|
|
762
754
|
constructor(op, query) {
|
|
763
755
|
super(SubqueryTestExpr.type);
|
|
764
756
|
this.op = op;
|
|
@@ -781,12 +773,11 @@ class SubqueryTestExpr extends BooleanExpr {
|
|
|
781
773
|
}
|
|
782
774
|
}
|
|
783
775
|
SubqueryTestExpr.type = ExprType.SubqueryTest;
|
|
784
|
-
export { SubqueryTestExpr };
|
|
785
776
|
/**
|
|
786
777
|
* Describe a subquery when used in FROM clause.
|
|
787
778
|
* @alpha
|
|
788
779
|
*/
|
|
789
|
-
class SubqueryRefExpr extends ClassRefExpr {
|
|
780
|
+
export class SubqueryRefExpr extends ClassRefExpr {
|
|
790
781
|
constructor(query, polymorphicInfo, alias) {
|
|
791
782
|
super(SubqueryRefExpr.type);
|
|
792
783
|
this.query = query;
|
|
@@ -821,12 +812,11 @@ class SubqueryRefExpr extends ClassRefExpr {
|
|
|
821
812
|
}
|
|
822
813
|
}
|
|
823
814
|
SubqueryRefExpr.type = ExprType.SubqueryRef;
|
|
824
|
-
export { SubqueryRefExpr };
|
|
825
815
|
/**
|
|
826
816
|
* Describe a optionally compound SELECT statement.
|
|
827
817
|
* @alpha
|
|
828
818
|
*/
|
|
829
|
-
class SelectStatementExpr extends StatementExpr {
|
|
819
|
+
export class SelectStatementExpr extends StatementExpr {
|
|
830
820
|
constructor(singleSelect, nextSelect) {
|
|
831
821
|
super(SelectStatementExpr.type);
|
|
832
822
|
this.singleSelect = singleSelect;
|
|
@@ -870,12 +860,11 @@ class SelectStatementExpr extends StatementExpr {
|
|
|
870
860
|
}
|
|
871
861
|
}
|
|
872
862
|
SelectStatementExpr.type = ExprType.SelectStatement;
|
|
873
|
-
export { SelectStatementExpr };
|
|
874
863
|
/**
|
|
875
864
|
* Describe selection in a SELECT query
|
|
876
865
|
* @alpha
|
|
877
866
|
*/
|
|
878
|
-
class SelectionClauseExpr extends Expr {
|
|
867
|
+
export class SelectionClauseExpr extends Expr {
|
|
879
868
|
constructor(derivedPropertyList) {
|
|
880
869
|
super(SelectionClauseExpr.type);
|
|
881
870
|
this.derivedPropertyList = derivedPropertyList;
|
|
@@ -899,12 +888,11 @@ class SelectionClauseExpr extends Expr {
|
|
|
899
888
|
}
|
|
900
889
|
}
|
|
901
890
|
SelectionClauseExpr.type = ExprType.SelectionClause;
|
|
902
|
-
export { SelectionClauseExpr };
|
|
903
891
|
/**
|
|
904
892
|
* Describe a GROUP BY clause in a SELECT statement.
|
|
905
893
|
* @alpha
|
|
906
894
|
*/
|
|
907
|
-
class GroupByClauseExpr extends Expr {
|
|
895
|
+
export class GroupByClauseExpr extends Expr {
|
|
908
896
|
constructor(exprList) {
|
|
909
897
|
super(GroupByClauseExpr.type);
|
|
910
898
|
this.exprList = exprList;
|
|
@@ -932,12 +920,11 @@ class GroupByClauseExpr extends Expr {
|
|
|
932
920
|
}
|
|
933
921
|
}
|
|
934
922
|
GroupByClauseExpr.type = ExprType.GroupByClause;
|
|
935
|
-
export { GroupByClauseExpr };
|
|
936
923
|
/**
|
|
937
924
|
* Describe a HAVING clause in a SELECT statement.
|
|
938
925
|
* @alpha
|
|
939
926
|
*/
|
|
940
|
-
class HavingClauseExpr extends Expr {
|
|
927
|
+
export class HavingClauseExpr extends Expr {
|
|
941
928
|
constructor(filterExpr) {
|
|
942
929
|
super(HavingClauseExpr.type);
|
|
943
930
|
this.filterExpr = filterExpr;
|
|
@@ -958,12 +945,11 @@ class HavingClauseExpr extends Expr {
|
|
|
958
945
|
}
|
|
959
946
|
}
|
|
960
947
|
HavingClauseExpr.type = ExprType.HavingClause;
|
|
961
|
-
export { HavingClauseExpr };
|
|
962
948
|
/**
|
|
963
949
|
* Describe a FROM clause in a SELECT statement.
|
|
964
950
|
* @alpha
|
|
965
951
|
*/
|
|
966
|
-
class FromClauseExpr extends Expr {
|
|
952
|
+
export class FromClauseExpr extends Expr {
|
|
967
953
|
constructor(classRefs) {
|
|
968
954
|
super(FromClauseExpr.type);
|
|
969
955
|
this.classRefs = classRefs;
|
|
@@ -989,12 +975,11 @@ class FromClauseExpr extends Expr {
|
|
|
989
975
|
}
|
|
990
976
|
}
|
|
991
977
|
FromClauseExpr.type = ExprType.FromClause;
|
|
992
|
-
export { FromClauseExpr };
|
|
993
978
|
/**
|
|
994
979
|
* Describe a WHERE clause in a SELECT, UPDATE and DELETE statement.
|
|
995
980
|
* @alpha
|
|
996
981
|
*/
|
|
997
|
-
class WhereClauseExp extends Expr {
|
|
982
|
+
export class WhereClauseExp extends Expr {
|
|
998
983
|
constructor(filterExpr) {
|
|
999
984
|
super(WhereClauseExp.type);
|
|
1000
985
|
this.filterExpr = filterExpr;
|
|
@@ -1015,12 +1000,11 @@ class WhereClauseExp extends Expr {
|
|
|
1015
1000
|
}
|
|
1016
1001
|
}
|
|
1017
1002
|
WhereClauseExp.type = ExprType.WhereClause;
|
|
1018
|
-
export { WhereClauseExp };
|
|
1019
1003
|
/**
|
|
1020
1004
|
* Describe a single sorted term in a ORDER BY clause of a SELECT statement.
|
|
1021
1005
|
* @alpha
|
|
1022
1006
|
*/
|
|
1023
|
-
class OrderBySpecExpr extends Expr {
|
|
1007
|
+
export class OrderBySpecExpr extends Expr {
|
|
1024
1008
|
constructor(term, sortDirection, nulls) {
|
|
1025
1009
|
super(OrderBySpecExpr.type);
|
|
1026
1010
|
this.term = term;
|
|
@@ -1051,12 +1035,11 @@ class OrderBySpecExpr extends Expr {
|
|
|
1051
1035
|
}
|
|
1052
1036
|
}
|
|
1053
1037
|
OrderBySpecExpr.type = ExprType.OrderBySpec;
|
|
1054
|
-
export { OrderBySpecExpr };
|
|
1055
1038
|
/**
|
|
1056
1039
|
* Describe a ORDER BY clause in a SELECT statement.
|
|
1057
1040
|
* @alpha
|
|
1058
1041
|
*/
|
|
1059
|
-
class OrderByClauseExpr extends Expr {
|
|
1042
|
+
export class OrderByClauseExpr extends Expr {
|
|
1060
1043
|
constructor(terms) {
|
|
1061
1044
|
super(OrderByClauseExpr.type);
|
|
1062
1045
|
this.terms = terms;
|
|
@@ -1084,12 +1067,11 @@ class OrderByClauseExpr extends Expr {
|
|
|
1084
1067
|
}
|
|
1085
1068
|
}
|
|
1086
1069
|
OrderByClauseExpr.type = ExprType.OrderByClause;
|
|
1087
|
-
export { OrderByClauseExpr };
|
|
1088
1070
|
/**
|
|
1089
1071
|
* Describe a LIMIT clause in a SELECT statement.
|
|
1090
1072
|
* @alpha
|
|
1091
1073
|
*/
|
|
1092
|
-
class LimitClauseExpr extends Expr {
|
|
1074
|
+
export class LimitClauseExpr extends Expr {
|
|
1093
1075
|
constructor(limit, offset) {
|
|
1094
1076
|
super(LimitClauseExpr.type);
|
|
1095
1077
|
this.limit = limit;
|
|
@@ -1120,12 +1102,11 @@ class LimitClauseExpr extends Expr {
|
|
|
1120
1102
|
}
|
|
1121
1103
|
}
|
|
1122
1104
|
LimitClauseExpr.type = ExprType.LimitClause;
|
|
1123
|
-
export { LimitClauseExpr };
|
|
1124
1105
|
/**
|
|
1125
1106
|
* Describe a single select statement.
|
|
1126
1107
|
* @alpha
|
|
1127
1108
|
*/
|
|
1128
|
-
class SelectExpr extends Expr {
|
|
1109
|
+
export class SelectExpr extends Expr {
|
|
1129
1110
|
constructor(selection, rowQuantifier, from, where, groupBy, having, orderBy, limit, options) {
|
|
1130
1111
|
super(SelectExpr.type);
|
|
1131
1112
|
this.selection = selection;
|
|
@@ -1214,12 +1195,11 @@ class SelectExpr extends Expr {
|
|
|
1214
1195
|
}
|
|
1215
1196
|
}
|
|
1216
1197
|
SelectExpr.type = ExprType.Select;
|
|
1217
|
-
export { SelectExpr };
|
|
1218
1198
|
/**
|
|
1219
1199
|
* Describe a subquery when used as value. This kind of query expect to return one column and one one value.
|
|
1220
1200
|
* @alpha
|
|
1221
1201
|
*/
|
|
1222
|
-
class SubqueryExpr extends ValueExpr {
|
|
1202
|
+
export class SubqueryExpr extends ValueExpr {
|
|
1223
1203
|
constructor(query) {
|
|
1224
1204
|
super(SubqueryExpr.type);
|
|
1225
1205
|
this.query = query;
|
|
@@ -1240,12 +1220,11 @@ class SubqueryExpr extends ValueExpr {
|
|
|
1240
1220
|
}
|
|
1241
1221
|
}
|
|
1242
1222
|
SubqueryExpr.type = ExprType.Subquery;
|
|
1243
|
-
export { SubqueryExpr };
|
|
1244
1223
|
/**
|
|
1245
1224
|
* Describe a binary boolean expression in ECSQL.
|
|
1246
1225
|
* @alpha
|
|
1247
1226
|
*/
|
|
1248
|
-
class BinaryBooleanExpr extends BooleanExpr {
|
|
1227
|
+
export class BinaryBooleanExpr extends BooleanExpr {
|
|
1249
1228
|
constructor(op, lhsExpr, rhsExpr, not) {
|
|
1250
1229
|
super(BinaryBooleanExpr.type);
|
|
1251
1230
|
this.op = op;
|
|
@@ -1272,12 +1251,11 @@ class BinaryBooleanExpr extends BooleanExpr {
|
|
|
1272
1251
|
}
|
|
1273
1252
|
}
|
|
1274
1253
|
BinaryBooleanExpr.type = ExprType.BinaryBoolean;
|
|
1275
|
-
export { BinaryBooleanExpr };
|
|
1276
1254
|
/**
|
|
1277
1255
|
* Describe a <expr> IS NULL boolean expression
|
|
1278
1256
|
* @alpha
|
|
1279
1257
|
*/
|
|
1280
|
-
class IsNullExpr extends BooleanExpr {
|
|
1258
|
+
export class IsNullExpr extends BooleanExpr {
|
|
1281
1259
|
constructor(operandExpr, not) {
|
|
1282
1260
|
super(IsNullExpr.type);
|
|
1283
1261
|
this.operandExpr = operandExpr;
|
|
@@ -1319,12 +1297,11 @@ class IsNullExpr extends BooleanExpr {
|
|
|
1319
1297
|
}
|
|
1320
1298
|
}
|
|
1321
1299
|
IsNullExpr.type = ExprType.IsNull;
|
|
1322
|
-
export { IsNullExpr };
|
|
1323
1300
|
/**
|
|
1324
1301
|
* Describe a <expr> IS (type1[, type2]) in ECSQL.
|
|
1325
1302
|
* @alpha
|
|
1326
1303
|
*/
|
|
1327
|
-
class IsOfTypeExpr extends BooleanExpr {
|
|
1304
|
+
export class IsOfTypeExpr extends BooleanExpr {
|
|
1328
1305
|
constructor(lhsExpr, typeNames, not) {
|
|
1329
1306
|
super(IsOfTypeExpr.type);
|
|
1330
1307
|
this.lhsExpr = lhsExpr;
|
|
@@ -1370,12 +1347,11 @@ class IsOfTypeExpr extends BooleanExpr {
|
|
|
1370
1347
|
}
|
|
1371
1348
|
}
|
|
1372
1349
|
IsOfTypeExpr.type = ExprType.IsOfType;
|
|
1373
|
-
export { IsOfTypeExpr };
|
|
1374
1350
|
/**
|
|
1375
1351
|
* Describe a NOT <expr> boolean expression
|
|
1376
1352
|
* @alpha
|
|
1377
1353
|
*/
|
|
1378
|
-
class NotExpr extends BooleanExpr {
|
|
1354
|
+
export class NotExpr extends BooleanExpr {
|
|
1379
1355
|
constructor(operandExpr) {
|
|
1380
1356
|
super(NotExpr.type);
|
|
1381
1357
|
this.operandExpr = operandExpr;
|
|
@@ -1399,12 +1375,11 @@ class NotExpr extends BooleanExpr {
|
|
|
1399
1375
|
}
|
|
1400
1376
|
}
|
|
1401
1377
|
NotExpr.type = ExprType.Not;
|
|
1402
|
-
export { NotExpr };
|
|
1403
1378
|
/**
|
|
1404
1379
|
* Describe a <expr> IN subquery|(val1[,val2...]) boolean expression
|
|
1405
1380
|
* @alpha
|
|
1406
1381
|
*/
|
|
1407
|
-
class InExpr extends BooleanExpr {
|
|
1382
|
+
export class InExpr extends BooleanExpr {
|
|
1408
1383
|
constructor(lhsExpr, rhsExpr, not) {
|
|
1409
1384
|
super(InExpr.type);
|
|
1410
1385
|
this.lhsExpr = lhsExpr;
|
|
@@ -1467,12 +1442,11 @@ class InExpr extends BooleanExpr {
|
|
|
1467
1442
|
}
|
|
1468
1443
|
}
|
|
1469
1444
|
InExpr.type = ExprType.In;
|
|
1470
|
-
export { InExpr };
|
|
1471
1445
|
/**
|
|
1472
1446
|
* Describe a <expr> LIKE <expr> [ESCAPE <expr>] boolean expression
|
|
1473
1447
|
* @alpha
|
|
1474
1448
|
*/
|
|
1475
|
-
class LikeExpr extends BooleanExpr {
|
|
1449
|
+
export class LikeExpr extends BooleanExpr {
|
|
1476
1450
|
constructor(lhsExpr, patternExpr, escapeExpr, not) {
|
|
1477
1451
|
super(LikeExpr.type);
|
|
1478
1452
|
this.lhsExpr = lhsExpr;
|
|
@@ -1521,12 +1495,11 @@ class LikeExpr extends BooleanExpr {
|
|
|
1521
1495
|
}
|
|
1522
1496
|
}
|
|
1523
1497
|
LikeExpr.type = ExprType.Like;
|
|
1524
|
-
export { LikeExpr };
|
|
1525
1498
|
/**
|
|
1526
1499
|
* Describe a <expr> BETWEEN <expr> AND <expr> boolean expression
|
|
1527
1500
|
* @alpha
|
|
1528
1501
|
*/
|
|
1529
|
-
class BetweenExpr extends BooleanExpr {
|
|
1502
|
+
export class BetweenExpr extends BooleanExpr {
|
|
1530
1503
|
constructor(lhsExpr, lowerBoundExpr, upperBoundExpr, not) {
|
|
1531
1504
|
super(BetweenExpr.type);
|
|
1532
1505
|
this.lhsExpr = lhsExpr;
|
|
@@ -1568,12 +1541,11 @@ class BetweenExpr extends BooleanExpr {
|
|
|
1568
1541
|
}
|
|
1569
1542
|
}
|
|
1570
1543
|
BetweenExpr.type = ExprType.Between;
|
|
1571
|
-
export { BetweenExpr };
|
|
1572
1544
|
/**
|
|
1573
1545
|
* Describe a common table expression base query statement
|
|
1574
1546
|
* @alpha
|
|
1575
1547
|
*/
|
|
1576
|
-
class CteExpr extends StatementExpr {
|
|
1548
|
+
export class CteExpr extends StatementExpr {
|
|
1577
1549
|
constructor(cteBlocks, query, recursive) {
|
|
1578
1550
|
super(CteExpr.type);
|
|
1579
1551
|
this.cteBlocks = cteBlocks;
|
|
@@ -1608,12 +1580,11 @@ class CteExpr extends StatementExpr {
|
|
|
1608
1580
|
}
|
|
1609
1581
|
}
|
|
1610
1582
|
CteExpr.type = ExprType.Cte;
|
|
1611
|
-
export { CteExpr };
|
|
1612
1583
|
/**
|
|
1613
1584
|
* Describe a single block of CTE that can be reference in FROM clause of a SELECT
|
|
1614
1585
|
* @alpha
|
|
1615
1586
|
*/
|
|
1616
|
-
class CteBlockExpr extends Expr {
|
|
1587
|
+
export class CteBlockExpr extends Expr {
|
|
1617
1588
|
constructor(name, query, props) {
|
|
1618
1589
|
super(CteBlockExpr.type);
|
|
1619
1590
|
this.name = name;
|
|
@@ -1652,12 +1623,11 @@ class CteBlockExpr extends Expr {
|
|
|
1652
1623
|
}
|
|
1653
1624
|
}
|
|
1654
1625
|
CteBlockExpr.type = ExprType.CteBlock;
|
|
1655
|
-
export { CteBlockExpr };
|
|
1656
1626
|
/**
|
|
1657
1627
|
* Describe a name reference to a CTE block.
|
|
1658
1628
|
* @alpha
|
|
1659
1629
|
*/
|
|
1660
|
-
class CteBlockRefExpr extends ClassRefExpr {
|
|
1630
|
+
export class CteBlockRefExpr extends ClassRefExpr {
|
|
1661
1631
|
constructor(name, alias) {
|
|
1662
1632
|
super(CteBlockRefExpr.type);
|
|
1663
1633
|
this.name = name;
|
|
@@ -1680,12 +1650,11 @@ class CteBlockRefExpr extends ClassRefExpr {
|
|
|
1680
1650
|
}
|
|
1681
1651
|
}
|
|
1682
1652
|
CteBlockRefExpr.type = ExprType.CteBlockRef;
|
|
1683
|
-
export { CteBlockRefExpr };
|
|
1684
1653
|
/**
|
|
1685
1654
|
* Describe a table value function expression in ECSQL that appear in FROM clause of query.
|
|
1686
1655
|
* @alpha
|
|
1687
1656
|
*/
|
|
1688
|
-
class TableValuedFuncExpr extends ClassRefExpr {
|
|
1657
|
+
export class TableValuedFuncExpr extends ClassRefExpr {
|
|
1689
1658
|
constructor(schemaName, memberFunc, alias) {
|
|
1690
1659
|
super(TableValuedFuncExpr.type);
|
|
1691
1660
|
this.schemaName = schemaName;
|
|
@@ -1712,12 +1681,11 @@ class TableValuedFuncExpr extends ClassRefExpr {
|
|
|
1712
1681
|
}
|
|
1713
1682
|
}
|
|
1714
1683
|
TableValuedFuncExpr.type = ExprType.TableValuedFunc;
|
|
1715
|
-
export { TableValuedFuncExpr };
|
|
1716
1684
|
/**
|
|
1717
1685
|
* Describe a class name reference in ECSQL that appear in FROM clause of a SELECT.
|
|
1718
1686
|
* @alpha
|
|
1719
1687
|
*/
|
|
1720
|
-
class ClassNameExpr extends ClassRefExpr {
|
|
1688
|
+
export class ClassNameExpr extends ClassRefExpr {
|
|
1721
1689
|
constructor(schemaNameOrAlias, className, tablespace, alias, polymorphicInfo, memberFunc) {
|
|
1722
1690
|
super(ClassNameExpr.type);
|
|
1723
1691
|
this.schemaNameOrAlias = schemaNameOrAlias;
|
|
@@ -1789,12 +1757,11 @@ class ClassNameExpr extends ClassRefExpr {
|
|
|
1789
1757
|
}
|
|
1790
1758
|
}
|
|
1791
1759
|
ClassNameExpr.type = ExprType.ClassName;
|
|
1792
|
-
export { ClassNameExpr };
|
|
1793
1760
|
/**
|
|
1794
1761
|
* Describe a UPDATE statement in ECSQL.
|
|
1795
1762
|
* @alpha
|
|
1796
1763
|
*/
|
|
1797
|
-
class UpdateStatementExpr extends StatementExpr {
|
|
1764
|
+
export class UpdateStatementExpr extends StatementExpr {
|
|
1798
1765
|
constructor(className, assignement, where, options) {
|
|
1799
1766
|
super(UpdateStatementExpr.type);
|
|
1800
1767
|
this.className = className;
|
|
@@ -1837,12 +1804,11 @@ class UpdateStatementExpr extends StatementExpr {
|
|
|
1837
1804
|
}
|
|
1838
1805
|
}
|
|
1839
1806
|
UpdateStatementExpr.type = ExprType.UpdateStatement;
|
|
1840
|
-
export { UpdateStatementExpr };
|
|
1841
1807
|
/**
|
|
1842
1808
|
* Describe ECSQL option clause.
|
|
1843
1809
|
* @alpha
|
|
1844
1810
|
*/
|
|
1845
|
-
class ECSqlOptionsClauseExpr extends Expr {
|
|
1811
|
+
export class ECSqlOptionsClauseExpr extends Expr {
|
|
1846
1812
|
constructor(options) {
|
|
1847
1813
|
super(ECSqlOptionsClauseExpr.type);
|
|
1848
1814
|
this.options = options;
|
|
@@ -1872,12 +1838,11 @@ class ECSqlOptionsClauseExpr extends Expr {
|
|
|
1872
1838
|
}
|
|
1873
1839
|
}
|
|
1874
1840
|
ECSqlOptionsClauseExpr.type = ExprType.ECSqlOptionsClause;
|
|
1875
|
-
export { ECSqlOptionsClauseExpr };
|
|
1876
1841
|
/**
|
|
1877
1842
|
* A single property value assignment for update clause
|
|
1878
1843
|
* @alpha
|
|
1879
1844
|
*/
|
|
1880
|
-
class AssignmentExpr extends Expr {
|
|
1845
|
+
export class AssignmentExpr extends Expr {
|
|
1881
1846
|
constructor(propertyName, valueExpr) {
|
|
1882
1847
|
super(SetClauseExpr.type);
|
|
1883
1848
|
this.propertyName = propertyName;
|
|
@@ -1899,12 +1864,11 @@ class AssignmentExpr extends Expr {
|
|
|
1899
1864
|
}
|
|
1900
1865
|
}
|
|
1901
1866
|
AssignmentExpr.type = ExprType.Assignment;
|
|
1902
|
-
export { AssignmentExpr };
|
|
1903
1867
|
/**
|
|
1904
1868
|
* Describe a set clause in a UPDATE statement
|
|
1905
1869
|
* @alpha
|
|
1906
1870
|
*/
|
|
1907
|
-
class SetClauseExpr extends Expr {
|
|
1871
|
+
export class SetClauseExpr extends Expr {
|
|
1908
1872
|
constructor(assignments) {
|
|
1909
1873
|
super(SetClauseExpr.type);
|
|
1910
1874
|
this.assignments = assignments;
|
|
@@ -1935,12 +1899,11 @@ class SetClauseExpr extends Expr {
|
|
|
1935
1899
|
}
|
|
1936
1900
|
}
|
|
1937
1901
|
SetClauseExpr.type = ExprType.SetClause;
|
|
1938
|
-
export { SetClauseExpr };
|
|
1939
1902
|
/**
|
|
1940
1903
|
* Describe a strong typed IIF function in ECSQL
|
|
1941
1904
|
* @alpha
|
|
1942
1905
|
*/
|
|
1943
|
-
class IIFExpr extends ValueExpr {
|
|
1906
|
+
export class IIFExpr extends ValueExpr {
|
|
1944
1907
|
constructor(whenExpr, thenExpr, elseExpr) {
|
|
1945
1908
|
super(IIFExpr.type);
|
|
1946
1909
|
this.whenExpr = whenExpr;
|
|
@@ -1968,12 +1931,11 @@ class IIFExpr extends ValueExpr {
|
|
|
1968
1931
|
}
|
|
1969
1932
|
}
|
|
1970
1933
|
IIFExpr.type = ExprType.IIF;
|
|
1971
|
-
export { IIFExpr };
|
|
1972
1934
|
/**
|
|
1973
1935
|
* Describe a CASE-WHEN-THEN expression in ECSQL
|
|
1974
1936
|
* @alpha
|
|
1975
1937
|
*/
|
|
1976
|
-
class SearchCaseExpr extends ValueExpr {
|
|
1938
|
+
export class SearchCaseExpr extends ValueExpr {
|
|
1977
1939
|
constructor(whenThenList, elseExpr) {
|
|
1978
1940
|
super(SearchCaseExpr.type);
|
|
1979
1941
|
this.whenThenList = whenThenList;
|
|
@@ -2025,12 +1987,11 @@ class SearchCaseExpr extends ValueExpr {
|
|
|
2025
1987
|
}
|
|
2026
1988
|
}
|
|
2027
1989
|
SearchCaseExpr.type = ExprType.SearchCase;
|
|
2028
|
-
export { SearchCaseExpr };
|
|
2029
1990
|
/**
|
|
2030
1991
|
* Describe a binary value expression
|
|
2031
1992
|
* @alpha
|
|
2032
1993
|
*/
|
|
2033
|
-
class BinaryValueExpr extends ValueExpr {
|
|
1994
|
+
export class BinaryValueExpr extends ValueExpr {
|
|
2034
1995
|
constructor(op, lhsExpr, rhsExpr) {
|
|
2035
1996
|
super(BinaryValueExpr.type);
|
|
2036
1997
|
this.op = op;
|
|
@@ -2055,12 +2016,11 @@ class BinaryValueExpr extends ValueExpr {
|
|
|
2055
2016
|
}
|
|
2056
2017
|
}
|
|
2057
2018
|
BinaryValueExpr.type = ExprType.BinaryValue;
|
|
2058
|
-
export { BinaryValueExpr };
|
|
2059
2019
|
/**
|
|
2060
2020
|
* Cast a expression into a target time e.g. CAST(<expr> AS STRING)
|
|
2061
2021
|
* @alpha
|
|
2062
2022
|
*/
|
|
2063
|
-
class CastExpr extends ValueExpr {
|
|
2023
|
+
export class CastExpr extends ValueExpr {
|
|
2064
2024
|
constructor(valueExpr, targetType) {
|
|
2065
2025
|
super(CastExpr.type);
|
|
2066
2026
|
this.valueExpr = valueExpr;
|
|
@@ -2087,12 +2047,11 @@ class CastExpr extends ValueExpr {
|
|
|
2087
2047
|
}
|
|
2088
2048
|
}
|
|
2089
2049
|
CastExpr.type = ExprType.Cast;
|
|
2090
|
-
export { CastExpr };
|
|
2091
2050
|
/**
|
|
2092
2051
|
* Represent a member function called w.r.t a ClassNameExpr
|
|
2093
2052
|
* @alpha
|
|
2094
2053
|
*/
|
|
2095
|
-
class MemberFuncCallExpr extends Expr {
|
|
2054
|
+
export class MemberFuncCallExpr extends Expr {
|
|
2096
2055
|
constructor(functionName, args) {
|
|
2097
2056
|
super(MemberFuncCallExpr.type);
|
|
2098
2057
|
this.functionName = functionName;
|
|
@@ -2121,12 +2080,11 @@ class MemberFuncCallExpr extends Expr {
|
|
|
2121
2080
|
}
|
|
2122
2081
|
}
|
|
2123
2082
|
MemberFuncCallExpr.type = ExprType.MemberFuncCall;
|
|
2124
|
-
export { MemberFuncCallExpr };
|
|
2125
2083
|
/**
|
|
2126
2084
|
* Represent a function call in ecsql
|
|
2127
2085
|
* @alpha
|
|
2128
2086
|
*/
|
|
2129
|
-
class FuncCallExpr extends ValueExpr {
|
|
2087
|
+
export class FuncCallExpr extends ValueExpr {
|
|
2130
2088
|
constructor(functionName, args, allOrDistinct) {
|
|
2131
2089
|
super(FuncCallExpr.type);
|
|
2132
2090
|
this.functionName = functionName;
|
|
@@ -2263,12 +2221,11 @@ class FuncCallExpr extends ValueExpr {
|
|
|
2263
2221
|
}
|
|
2264
2222
|
}
|
|
2265
2223
|
FuncCallExpr.type = ExprType.FuncCall;
|
|
2266
|
-
export { FuncCallExpr };
|
|
2267
2224
|
/**
|
|
2268
2225
|
* Represent positional or named parameter
|
|
2269
2226
|
* @alpha
|
|
2270
2227
|
*/
|
|
2271
|
-
class ParameterExpr extends ValueExpr {
|
|
2228
|
+
export class ParameterExpr extends ValueExpr {
|
|
2272
2229
|
constructor(name) {
|
|
2273
2230
|
super(ParameterExpr.type);
|
|
2274
2231
|
this.name = name;
|
|
@@ -2290,12 +2247,11 @@ class ParameterExpr extends ValueExpr {
|
|
|
2290
2247
|
}
|
|
2291
2248
|
}
|
|
2292
2249
|
ParameterExpr.type = ExprType.Parameter;
|
|
2293
|
-
export { ParameterExpr };
|
|
2294
2250
|
/**
|
|
2295
2251
|
* Unary value with operator e.g. [+|-|~]<number>
|
|
2296
2252
|
* @alpha
|
|
2297
2253
|
*/
|
|
2298
|
-
class UnaryValueExpr extends ValueExpr {
|
|
2254
|
+
export class UnaryValueExpr extends ValueExpr {
|
|
2299
2255
|
constructor(op, valueExpr) {
|
|
2300
2256
|
super(UnaryValueExpr.type);
|
|
2301
2257
|
this.op = op;
|
|
@@ -2319,12 +2275,11 @@ class UnaryValueExpr extends ValueExpr {
|
|
|
2319
2275
|
}
|
|
2320
2276
|
}
|
|
2321
2277
|
UnaryValueExpr.type = ExprType.Unary;
|
|
2322
|
-
export { UnaryValueExpr };
|
|
2323
2278
|
/**
|
|
2324
2279
|
* Represent constant literal like string, data, time, timestamp, number or null
|
|
2325
2280
|
* @alpha
|
|
2326
2281
|
*/
|
|
2327
|
-
class LiteralExpr extends ValueExpr {
|
|
2282
|
+
export class LiteralExpr extends ValueExpr {
|
|
2328
2283
|
constructor(valueType, rawValue) {
|
|
2329
2284
|
super(LiteralExpr.type);
|
|
2330
2285
|
this.valueType = valueType;
|
|
@@ -2362,12 +2317,11 @@ class LiteralExpr extends ValueExpr {
|
|
|
2362
2317
|
static makeNull() { return new LiteralExpr(LiteralValueType.Null, ""); }
|
|
2363
2318
|
}
|
|
2364
2319
|
LiteralExpr.type = ExprType.Literal;
|
|
2365
|
-
export { LiteralExpr };
|
|
2366
2320
|
/**
|
|
2367
2321
|
* Represent property name identifier
|
|
2368
2322
|
* @alpha
|
|
2369
2323
|
*/
|
|
2370
|
-
class PropertyNameExpr extends ValueExpr {
|
|
2324
|
+
export class PropertyNameExpr extends ValueExpr {
|
|
2371
2325
|
constructor(propertyPath) {
|
|
2372
2326
|
super(PropertyNameExpr.type);
|
|
2373
2327
|
this.propertyPath = propertyPath;
|
|
@@ -2392,12 +2346,11 @@ class PropertyNameExpr extends ValueExpr {
|
|
|
2392
2346
|
}
|
|
2393
2347
|
}
|
|
2394
2348
|
PropertyNameExpr.type = ExprType.PropertyName;
|
|
2395
|
-
export { PropertyNameExpr };
|
|
2396
2349
|
/**
|
|
2397
2350
|
* Represent navigation value creation function
|
|
2398
2351
|
* @alpha
|
|
2399
2352
|
*/
|
|
2400
|
-
class NavValueCreationFuncExpr extends ValueExpr {
|
|
2353
|
+
export class NavValueCreationFuncExpr extends ValueExpr {
|
|
2401
2354
|
constructor(columnRefExp, idArgExp, classNameExp, relECClassIdExp) {
|
|
2402
2355
|
super(NavValueCreationFuncExpr.type);
|
|
2403
2356
|
this.columnRefExp = columnRefExp;
|
|
@@ -2434,5 +2387,4 @@ class NavValueCreationFuncExpr extends ValueExpr {
|
|
|
2434
2387
|
}
|
|
2435
2388
|
NavValueCreationFuncExpr.type = ExprType.NavValueCreationFunc;
|
|
2436
2389
|
NavValueCreationFuncExpr.navValueCreationFuncExprName = "NAVIGATION_VALUE";
|
|
2437
|
-
export { NavValueCreationFuncExpr };
|
|
2438
2390
|
//# sourceMappingURL=ECSqlAst.js.map
|