@mikro-orm/knex 6.0.2-dev.0 → 6.0.2-dev.1

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.
@@ -130,7 +130,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
130
130
  return res;
131
131
  }
132
132
  async wrapVirtualExpressionInSubquery(meta, expression, where, options, type) {
133
- const qb = this.createQueryBuilder(meta.className, options?.ctx, options.connectionType, options.convertCustomTypes)
133
+ const qb = this.createQueryBuilder(meta.className, options?.ctx, options.connectionType, options.convertCustomTypes, options.logging)
134
134
  .indexHint(options.indexHint)
135
135
  .comment(options.comments)
136
136
  .hintComment(options.hintComments);
@@ -285,7 +285,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
285
285
  if (meta?.virtual) {
286
286
  return this.countVirtual(entityName, where, options);
287
287
  }
288
- const qb = this.createQueryBuilder(entityName, options.ctx, options.connectionType, false)
288
+ const qb = this.createQueryBuilder(entityName, options.ctx, options.connectionType, false, options.logging)
289
289
  .indexHint(options.indexHint)
290
290
  .comment(options.comments)
291
291
  .hintComment(options.hintComments)
@@ -664,7 +664,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
664
664
  const pivotProp2 = pivotMeta.relations[prop.owner ? 0 : 1];
665
665
  const ownerMeta = this.metadata.find(pivotProp2.type);
666
666
  options = { ...options };
667
- const qb = this.createQueryBuilder(prop.pivotEntity, ctx, options.connectionType)
667
+ const qb = this.createQueryBuilder(prop.pivotEntity, ctx, options.connectionType, undefined, options?.logging)
668
668
  .withSchema(this.getSchemaName(pivotMeta, options))
669
669
  .indexHint(options.indexHint)
670
670
  .comment(options.comments)
@@ -972,7 +972,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
972
972
  }
973
973
  async lockPessimistic(entity, options) {
974
974
  const meta = (0, core_1.helper)(entity).__meta;
975
- const qb = this.createQueryBuilder(entity.constructor.name, options.ctx).withSchema(options.schema ?? meta.schema);
975
+ const qb = this.createQueryBuilder(entity.constructor.name, options.ctx, undefined, undefined, options.logging).withSchema(options.schema ?? meta.schema);
976
976
  const cond = core_1.Utils.getPrimaryKeyCond(entity, meta.primaryKeys);
977
977
  qb.select((0, core_1.raw)('1')).where(cond).setLockMode(options.lockMode, options.lockTableAliases);
978
978
  await this.rethrow(qb.execute());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.0.2-dev.0",
3
+ "version": "6.0.2-dev.1",
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,6 +66,6 @@
66
66
  "@mikro-orm/core": "^6.0.1"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.0.2-dev.0"
69
+ "@mikro-orm/core": "6.0.2-dev.1"
70
70
  }
71
71
  }