@mikro-orm/knex 6.3.7-dev.5 → 6.3.7-dev.7
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/AbstractSqlDriver.js +1 -1
- package/package.json +2 -2
package/AbstractSqlDriver.js
CHANGED
|
@@ -135,6 +135,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
135
135
|
.indexHint(options.indexHint)
|
|
136
136
|
.comment(options.comments)
|
|
137
137
|
.hintComment(options.hintComments);
|
|
138
|
+
qb.where(where);
|
|
138
139
|
const { first, last, before, after } = options;
|
|
139
140
|
const isCursorPagination = [first, last, before, after].some(v => v != null);
|
|
140
141
|
if (type !== query_1.QueryType.COUNT) {
|
|
@@ -149,7 +150,6 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
149
150
|
}
|
|
150
151
|
qb.limit(options?.limit, options?.offset);
|
|
151
152
|
}
|
|
152
|
-
qb.where(where);
|
|
153
153
|
const kqb = qb.getKnexQuery(false).clear('select');
|
|
154
154
|
if (type === query_1.QueryType.COUNT) {
|
|
155
155
|
kqb.select(this.connection.getKnex().raw('count(*) as count'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.3.7-dev.
|
|
3
|
+
"version": "6.3.7-dev.7",
|
|
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,7 +66,7 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.3.6"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.3.7-dev.
|
|
69
|
+
"@mikro-orm/core": "6.3.7-dev.7",
|
|
70
70
|
"better-sqlite3": "*",
|
|
71
71
|
"libsql": "*",
|
|
72
72
|
"mariadb": "*"
|