@mikro-orm/mssql 7.0.0-dev.97 → 7.0.0-dev.99

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/MsSqlDriver.d.ts CHANGED
@@ -1,10 +1,13 @@
1
- import { type AnyEntity, type Configuration, type ConnectionType, type EntityDictionary, type LoggingOptions, type NativeInsertUpdateManyOptions, type QueryResult, type Transaction } from '@mikro-orm/core';
1
+ import { type AnyEntity, type Configuration, type ConnectionType, type EntityDictionary, type LoggingOptions, type NativeInsertUpdateManyOptions, type QueryResult, type Transaction, type Constructor } from '@mikro-orm/core';
2
2
  import { AbstractSqlDriver, type SqlEntityManager } from '@mikro-orm/sql';
3
3
  import { MsSqlConnection } from './MsSqlConnection.js';
4
4
  import { MsSqlQueryBuilder } from './MsSqlQueryBuilder.js';
5
+ import { MsSqlMikroORM } from './MsSqlMikroORM.js';
5
6
  export declare class MsSqlDriver extends AbstractSqlDriver<MsSqlConnection> {
6
7
  constructor(config: Configuration);
7
8
  nativeInsertMany<T extends AnyEntity<T>>(entityName: string, data: EntityDictionary<T>[], options?: NativeInsertUpdateManyOptions<T>): Promise<QueryResult<T>>;
8
9
  createQueryBuilder<T extends AnyEntity<T>>(entityName: string, ctx?: Transaction, preferredConnectionType?: ConnectionType, convertCustomTypes?: boolean, loggerContext?: LoggingOptions, alias?: string, em?: SqlEntityManager): MsSqlQueryBuilder<T, any, any, any>;
9
10
  private appendOutputTable;
11
+ /** @inheritDoc */
12
+ getORMClass(): Constructor<MsSqlMikroORM>;
10
13
  }
package/MsSqlDriver.js CHANGED
@@ -3,6 +3,7 @@ import { AbstractSqlDriver } from '@mikro-orm/sql';
3
3
  import { MsSqlConnection } from './MsSqlConnection.js';
4
4
  import { MsSqlPlatform } from './MsSqlPlatform.js';
5
5
  import { MsSqlQueryBuilder } from './MsSqlQueryBuilder.js';
6
+ import { MsSqlMikroORM } from './MsSqlMikroORM.js';
6
7
  export class MsSqlDriver extends AbstractSqlDriver {
7
8
  constructor(config) {
8
9
  super(config, new MsSqlPlatform(), MsSqlConnection, ['kysely', 'tedious']);
@@ -71,4 +72,8 @@ export class MsSqlDriver extends AbstractSqlDriver {
71
72
  outputSql += `drop table #out`;
72
73
  return outputSql;
73
74
  }
75
+ /** @inheritDoc */
76
+ getORMClass() {
77
+ return MsSqlMikroORM;
78
+ }
74
79
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/mssql",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.97",
4
+ "version": "7.0.0-dev.99",
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.99",
54
54
  "tarn": "3.0.2",
55
55
  "tedious": "19.1.3",
56
56
  "tsqlstring": "1.0.1"
@@ -60,7 +60,7 @@
60
60
  "kysely": "0.28.8"
61
61
  },
62
62
  "peerDependencies": {
63
- "@mikro-orm/core": "7.0.0-dev.97",
63
+ "@mikro-orm/core": "7.0.0-dev.99",
64
64
  "kysely": "*"
65
65
  }
66
66
  }