@utaba/deep-memory-storage-sqlserver 0.17.0 → 0.18.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.js
CHANGED
|
@@ -1210,9 +1210,9 @@ var SqlServerStorageProvider = class {
|
|
|
1210
1210
|
const tgtBidi = `SELECT * FROM ${tbl} WHERE [repository_id] = @repoId AND [target_entity_id] = @entityId AND [bidirectional] = 1${rtFilter}`;
|
|
1211
1211
|
const srcBidi = `SELECT * FROM ${tbl} WHERE [repository_id] = @repoId AND [source_entity_id] = @entityId AND [bidirectional] = 1${rtFilter}`;
|
|
1212
1212
|
switch (direction) {
|
|
1213
|
-
case "
|
|
1213
|
+
case "out":
|
|
1214
1214
|
return `${srcBase} UNION ALL ${tgtBidi} AND [source_entity_id] <> @entityId`;
|
|
1215
|
-
case "
|
|
1215
|
+
case "in":
|
|
1216
1216
|
return `${tgtBase} UNION ALL ${srcBidi} AND [target_entity_id] <> @entityId`;
|
|
1217
1217
|
case "both":
|
|
1218
1218
|
default:
|
|
@@ -1645,10 +1645,10 @@ var SqlServerStorageProvider = class {
|
|
|
1645
1645
|
const srcBidi = `SELECT * FROM ${tbl} WHERE [repository_id] = @repoId AND [source_entity_id] IN (SELECT [id] FROM @entityIds) AND [bidirectional] = 1${rtFilter}`;
|
|
1646
1646
|
let unionQuery;
|
|
1647
1647
|
switch (direction) {
|
|
1648
|
-
case "
|
|
1648
|
+
case "out":
|
|
1649
1649
|
unionQuery = `${srcBase} UNION ALL ${tgtBidi}`;
|
|
1650
1650
|
break;
|
|
1651
|
-
case "
|
|
1651
|
+
case "in":
|
|
1652
1652
|
unionQuery = `${tgtBase} UNION ALL ${srcBidi}`;
|
|
1653
1653
|
break;
|
|
1654
1654
|
case "both":
|