@utaba/deep-memory-storage-sqlserver 0.17.0 → 0.19.0
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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1240,9 +1240,9 @@ var SqlServerStorageProvider = class {
|
|
|
1240
1240
|
const tgtBidi = `SELECT * FROM ${tbl} WHERE [repository_id] = @repoId AND [target_entity_id] = @entityId AND [bidirectional] = 1${rtFilter}`;
|
|
1241
1241
|
const srcBidi = `SELECT * FROM ${tbl} WHERE [repository_id] = @repoId AND [source_entity_id] = @entityId AND [bidirectional] = 1${rtFilter}`;
|
|
1242
1242
|
switch (direction) {
|
|
1243
|
-
case "
|
|
1243
|
+
case "out":
|
|
1244
1244
|
return `${srcBase} UNION ALL ${tgtBidi} AND [source_entity_id] <> @entityId`;
|
|
1245
|
-
case "
|
|
1245
|
+
case "in":
|
|
1246
1246
|
return `${tgtBase} UNION ALL ${srcBidi} AND [target_entity_id] <> @entityId`;
|
|
1247
1247
|
case "both":
|
|
1248
1248
|
default:
|
|
@@ -1675,10 +1675,10 @@ var SqlServerStorageProvider = class {
|
|
|
1675
1675
|
const srcBidi = `SELECT * FROM ${tbl} WHERE [repository_id] = @repoId AND [source_entity_id] IN (SELECT [id] FROM @entityIds) AND [bidirectional] = 1${rtFilter}`;
|
|
1676
1676
|
let unionQuery;
|
|
1677
1677
|
switch (direction) {
|
|
1678
|
-
case "
|
|
1678
|
+
case "out":
|
|
1679
1679
|
unionQuery = `${srcBase} UNION ALL ${tgtBidi}`;
|
|
1680
1680
|
break;
|
|
1681
|
-
case "
|
|
1681
|
+
case "in":
|
|
1682
1682
|
unionQuery = `${tgtBase} UNION ALL ${srcBidi}`;
|
|
1683
1683
|
break;
|
|
1684
1684
|
case "both":
|