@mikro-orm/knex 5.7.12-dev.0 → 5.7.12-dev.2
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/AbstractSqlConnection.js +1 -1
- package/AbstractSqlDriver.js +2 -2
- package/package.json +4 -4
- package/query/enums.js +1 -1
package/AbstractSqlConnection.js
CHANGED
package/AbstractSqlDriver.js
CHANGED
|
@@ -79,7 +79,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
79
79
|
const em = this.createEntityManager(false);
|
|
80
80
|
em.setTransactionContext(options.ctx);
|
|
81
81
|
const res = meta.expression(em, where, options);
|
|
82
|
-
if (res instanceof
|
|
82
|
+
if (res instanceof query_1.QueryBuilder) {
|
|
83
83
|
return this.wrapVirtualExpressionInSubquery(meta, res.getFormattedQuery(), where, options);
|
|
84
84
|
}
|
|
85
85
|
/* istanbul ignore next */
|
|
@@ -97,7 +97,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
97
97
|
const em = this.createEntityManager(false);
|
|
98
98
|
em.setTransactionContext(options.ctx);
|
|
99
99
|
const res = meta.expression(em, where, options);
|
|
100
|
-
if (res instanceof
|
|
100
|
+
if (res instanceof query_1.QueryBuilder) {
|
|
101
101
|
return this.wrapVirtualExpressionInSubquery(meta, res.getFormattedQuery(), where, options, query_1.QueryType.COUNT);
|
|
102
102
|
}
|
|
103
103
|
/* istanbul ignore next */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "5.7.12-dev.
|
|
3
|
+
"version": "5.7.12-dev.2",
|
|
4
4
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"@mikro-orm/core": "^5.7.11"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "~5.7.12-dev.
|
|
70
|
-
"@mikro-orm/entity-generator": "~5.7.12-dev.
|
|
71
|
-
"@mikro-orm/migrations": "~5.7.12-dev.
|
|
69
|
+
"@mikro-orm/core": "~5.7.12-dev.2",
|
|
70
|
+
"@mikro-orm/entity-generator": "~5.7.12-dev.2",
|
|
71
|
+
"@mikro-orm/migrations": "~5.7.12-dev.2",
|
|
72
72
|
"better-sqlite3": "*",
|
|
73
73
|
"mssql": "*",
|
|
74
74
|
"mysql": "*",
|
package/query/enums.js
CHANGED