@mikro-orm/mssql 7.1.16-dev.1 → 7.1.16-dev.11

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.
@@ -2,7 +2,13 @@ import { AbstractSqlConnection, type TransactionEventBroadcaster } from '@mikro-
2
2
  import { type ControlledTransaction, MssqlDialect } from 'kysely';
3
3
  import { type Routine, type Transaction } from '@mikro-orm/core';
4
4
  import type { ConnectionConfiguration } from 'tedious';
5
- /** Microsoft SQL Server database connection using the `tedious` driver. */
5
+ /**
6
+ * Microsoft SQL Server database connection using the `tedious` driver.
7
+ *
8
+ * There is no `getNativeClient()` here: tedious has no long-lived client object, and the pool
9
+ * kysely builds holds its own connection wrappers rather than tedious ones. Reach individual
10
+ * `Tedious.Connection`s through the `onCreateConnection`/`onReserveConnection` hooks instead.
11
+ */
6
12
  export declare class MsSqlConnection extends AbstractSqlConnection {
7
13
  createKyselyDialect(overrides: ConnectionConfiguration): MssqlDialect;
8
14
  private mapOptions;
@@ -28,7 +28,13 @@ class MsSqlReserveDialect extends MssqlDialect {
28
28
  return driver;
29
29
  }
30
30
  }
31
- /** Microsoft SQL Server database connection using the `tedious` driver. */
31
+ /**
32
+ * Microsoft SQL Server database connection using the `tedious` driver.
33
+ *
34
+ * There is no `getNativeClient()` here: tedious has no long-lived client object, and the pool
35
+ * kysely builds holds its own connection wrappers rather than tedious ones. Reach individual
36
+ * `Tedious.Connection`s through the `onCreateConnection`/`onReserveConnection` hooks instead.
37
+ */
32
38
  export class MsSqlConnection extends AbstractSqlConnection {
33
39
  createKyselyDialect(overrides) {
34
40
  const options = this.mapOptions(overrides);
@@ -8,6 +8,8 @@ export declare class MsSqlPlatform extends AbstractSqlPlatform {
8
8
  #private;
9
9
  protected readonly schemaHelper: MsSqlSchemaHelper;
10
10
  protected readonly exceptionConverter: MsSqlExceptionConverter;
11
+ /** mssql treats null as the lowest value when no placement is requested. */
12
+ sortsNullsLowest(): boolean;
11
13
  formatIndexHint(indexNames: string[]): string;
12
14
  /** @inheritDoc */
13
15
  lookupExtensions(orm: MikroORM<MsSqlDriver>): void;
package/MsSqlPlatform.js CHANGED
@@ -16,6 +16,10 @@ export class MsSqlPlatform extends AbstractSqlPlatform {
16
16
  bigint: 'bigint',
17
17
  boolean: 'bit',
18
18
  };
19
+ /** mssql treats null as the lowest value when no placement is requested. */
20
+ sortsNullsLowest() {
21
+ return true;
22
+ }
19
23
  formatIndexHint(indexNames) {
20
24
  return `with (index(${indexNames.join(', ')}))`;
21
25
  }
package/README.md CHANGED
@@ -24,6 +24,7 @@ npm install @mikro-orm/mysql # MySQL
24
24
  npm install @mikro-orm/mariadb # MariaDB
25
25
  npm install @mikro-orm/sqlite # SQLite
26
26
  npm install @mikro-orm/libsql # libSQL / Turso
27
+ npm install @mikro-orm/sql-js # sql.js (in-memory SQLite in WASM)
27
28
  npm install @mikro-orm/mongodb # MongoDB
28
29
  npm install @mikro-orm/mssql # MS SQL Server
29
30
  npm install @mikro-orm/oracledb # Oracle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/mssql",
3
- "version": "7.1.16-dev.1",
3
+ "version": "7.1.16-dev.11",
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
  "keywords": [
6
6
  "data-mapper",
@@ -47,7 +47,7 @@
47
47
  "copy": "node ../../scripts/copy.mjs"
48
48
  },
49
49
  "dependencies": {
50
- "@mikro-orm/sql": "7.1.16-dev.1",
50
+ "@mikro-orm/sql": "7.1.16-dev.11",
51
51
  "kysely": "0.29.5",
52
52
  "tarn": "3.1.2",
53
53
  "tedious": "20.0.0",
@@ -57,7 +57,7 @@
57
57
  "@mikro-orm/core": "^7.1.15"
58
58
  },
59
59
  "peerDependencies": {
60
- "@mikro-orm/core": "7.1.16-dev.1"
60
+ "@mikro-orm/core": "7.1.16-dev.11"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">= 22.17.0"