@mikro-orm/mysql 7.0.0-dev.97 → 7.0.0-dev.98

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/MySqlDriver.d.ts CHANGED
@@ -1,10 +1,13 @@
1
- import { type Configuration, type EntityDictionary, type FilterQuery, type NativeInsertUpdateManyOptions, type QueryResult, type UpsertManyOptions } from '@mikro-orm/core';
1
+ import { type Configuration, type Constructor, type EntityDictionary, type FilterQuery, type NativeInsertUpdateManyOptions, type QueryResult, type UpsertManyOptions } from '@mikro-orm/core';
2
2
  import { AbstractSqlDriver, MySqlPlatform } from '@mikro-orm/sql';
3
3
  import { MySqlConnection } from './MySqlConnection.js';
4
+ import { MySqlMikroORM } from './MySqlMikroORM.js';
4
5
  export declare class MySqlDriver extends AbstractSqlDriver<MySqlConnection, MySqlPlatform> {
5
6
  protected autoIncrementIncrement?: number;
6
7
  constructor(config: Configuration);
7
8
  private getAutoIncrementIncrement;
8
9
  nativeInsertMany<T extends object>(entityName: string, data: EntityDictionary<T>[], options?: NativeInsertUpdateManyOptions<T>): Promise<QueryResult<T>>;
9
10
  nativeUpdateMany<T extends object>(entityName: string, where: FilterQuery<T>[], data: EntityDictionary<T>[], options?: NativeInsertUpdateManyOptions<T> & UpsertManyOptions<T>): Promise<QueryResult<T>>;
11
+ /** @inheritDoc */
12
+ getORMClass(): Constructor<MySqlMikroORM>;
10
13
  }
package/MySqlDriver.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Utils, } from '@mikro-orm/core';
2
2
  import { AbstractSqlDriver, MySqlPlatform } from '@mikro-orm/sql';
3
3
  import { MySqlConnection } from './MySqlConnection.js';
4
+ import { MySqlMikroORM } from './MySqlMikroORM.js';
4
5
  export class MySqlDriver extends AbstractSqlDriver {
5
6
  autoIncrementIncrement;
6
7
  constructor(config) {
@@ -46,4 +47,8 @@ export class MySqlDriver extends AbstractSqlDriver {
46
47
  res.row = res.rows[0];
47
48
  return res;
48
49
  }
50
+ /** @inheritDoc */
51
+ getORMClass() {
52
+ return MySqlMikroORM;
53
+ }
49
54
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/mysql",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.97",
4
+ "version": "7.0.0-dev.98",
5
5
  "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.",
6
6
  "exports": {
7
7
  "./package.json": "./package.json",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@mikro-orm/sql": "7.0.0-dev.97",
53
+ "@mikro-orm/sql": "7.0.0-dev.98",
54
54
  "mysql2": "3.15.3"
55
55
  },
56
56
  "devDependencies": {
@@ -58,7 +58,7 @@
58
58
  "kysely": "0.28.8"
59
59
  },
60
60
  "peerDependencies": {
61
- "@mikro-orm/core": "7.0.0-dev.97",
61
+ "@mikro-orm/core": "7.0.0-dev.98",
62
62
  "kysely": "*"
63
63
  }
64
64
  }