linkgress-orm 0.4.62 → 0.4.63
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/dist/entity/db-context.d.ts +1 -1
- package/dist/entity/db-context.js +65 -65
- package/dist/entity/db-context.js.map +1 -1
- package/dist/entity/entity-base.d.ts +1 -1
- package/dist/entity/entity-base.js +1 -1
- package/dist/entity/entity-builder.d.ts +9 -9
- package/dist/entity/entity-builder.js +9 -9
- package/dist/query/collection-strategy.interface.d.ts +1 -1
- package/dist/query/conditions.d.ts +17 -9
- package/dist/query/conditions.d.ts.map +1 -1
- package/dist/query/conditions.js +30 -10
- package/dist/query/conditions.js.map +1 -1
- package/dist/query/mutation-batch.d.ts +2 -2
- package/dist/query/mutation-batch.js +2 -2
- package/dist/query/query-builder.d.ts +1 -1
- package/dist/query/query-builder.js +15 -15
- package/dist/query/query-builder.js.map +1 -1
- package/dist/query/strategies/cte-collection-strategy.d.ts +1 -1
- package/dist/query/strategies/cte-collection-strategy.js +1 -1
- package/dist/query/strategies/lateral-collection-strategy.d.ts +1 -1
- package/dist/query/strategies/lateral-collection-strategy.js +1 -1
- package/dist/query/strategies/temptable-collection-strategy.d.ts +1 -1
- package/dist/query/strategies/temptable-collection-strategy.js +1 -1
- package/package.json +1 -1
|
@@ -42,7 +42,7 @@ export declare class CteCollectionStrategy implements ICollectionStrategy {
|
|
|
42
42
|
*
|
|
43
43
|
* Without this, the CTE strategy groups every target row by FK column with no
|
|
44
44
|
* filtering, leaking historical / closed SCD2 rows into the projected
|
|
45
|
-
* collection — the exact
|
|
45
|
+
* collection — the exact constant-FK projection symptom.
|
|
46
46
|
*
|
|
47
47
|
* @param config The aggregation config (carries `foreignKeys`/`matches`).
|
|
48
48
|
* @param targetTable Alias of the target table inside the CTE's inner SELECT.
|
|
@@ -49,7 +49,7 @@ class CteCollectionStrategy {
|
|
|
49
49
|
*
|
|
50
50
|
* Without this, the CTE strategy groups every target row by FK column with no
|
|
51
51
|
* filtering, leaking historical / closed SCD2 rows into the projected
|
|
52
|
-
* collection — the exact
|
|
52
|
+
* collection — the exact constant-FK projection symptom.
|
|
53
53
|
*
|
|
54
54
|
* @param config The aggregation config (carries `foreignKeys`/`matches`).
|
|
55
55
|
* @param targetTable Alias of the target table inside the CTE's inner SELECT.
|
|
@@ -48,7 +48,7 @@ export declare class LateralCollectionStrategy implements ICollectionStrategy {
|
|
|
48
48
|
* like `__LIT:true`). Falls back to the legacy single-column form when the
|
|
49
49
|
* navigation metadata doesn't carry the array form.
|
|
50
50
|
*
|
|
51
|
-
* This is the load-bearing helper for the
|
|
51
|
+
* This is the load-bearing helper for the constant-FK projection fix: navigation
|
|
52
52
|
* properties may declare additional literal predicates beyond the column
|
|
53
53
|
* equality (e.g. `withForeignKey: [col, isCurrent], withPrincipalKey: [id, true]`)
|
|
54
54
|
* that must fire on every projection. Without this helper, the strategy
|
|
@@ -55,7 +55,7 @@ class LateralCollectionStrategy {
|
|
|
55
55
|
* like `__LIT:true`). Falls back to the legacy single-column form when the
|
|
56
56
|
* navigation metadata doesn't carry the array form.
|
|
57
57
|
*
|
|
58
|
-
* This is the load-bearing helper for the
|
|
58
|
+
* This is the load-bearing helper for the constant-FK projection fix: navigation
|
|
59
59
|
* properties may declare additional literal predicates beyond the column
|
|
60
60
|
* equality (e.g. `withForeignKey: [col, isCurrent], withPrincipalKey: [id, true]`)
|
|
61
61
|
* that must fire on every projection. Without this helper, the strategy
|
|
@@ -49,7 +49,7 @@ export declare class TempTableCollectionStrategy implements ICollectionStrategy
|
|
|
49
49
|
* with any literal FK predicates declared on the navigation (e.g. SCD2
|
|
50
50
|
* `is_current = TRUE`). Returns "" or " AND <preds...>". Without this, the
|
|
51
51
|
* temptable strategy leaks SCD2-closed target rows into the projection — the
|
|
52
|
-
* exact
|
|
52
|
+
* exact constant-FK projection symptom.
|
|
53
53
|
*/
|
|
54
54
|
private buildAdditionalWhere;
|
|
55
55
|
requiresParentIds(): boolean;
|
|
@@ -57,7 +57,7 @@ class TempTableCollectionStrategy {
|
|
|
57
57
|
* with any literal FK predicates declared on the navigation (e.g. SCD2
|
|
58
58
|
* `is_current = TRUE`). Returns "" or " AND <preds...>". Without this, the
|
|
59
59
|
* temptable strategy leaks SCD2-closed target rows into the projection — the
|
|
60
|
-
* exact
|
|
60
|
+
* exact constant-FK projection symptom.
|
|
61
61
|
*/
|
|
62
62
|
buildAdditionalWhere(config, targetTable, rewrittenWhereClause) {
|
|
63
63
|
const literalPreds = (0, join_utils_1.buildLiteralOnlyPredicates)(targetTable, config.foreignKeys, config.matches);
|
package/package.json
CHANGED