@mikro-orm/mssql 6.4.17-dev.29 → 6.4.17-dev.30

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.
@@ -50,7 +50,9 @@ export declare class MsSqlPlatform extends AbstractSqlPlatform {
50
50
  normalizePrimaryKey<T extends number | string = number | string>(data: Primary<T> | IPrimaryKey | string): T;
51
51
  supportsMultipleCascadePaths(): boolean;
52
52
  supportsMultipleStatements(): boolean;
53
- quoteIdentifier(id: string): string;
53
+ quoteIdentifier(id: string | {
54
+ toString: () => string;
55
+ }): string;
54
56
  escape(value: any): string;
55
57
  getSchemaGenerator(driver: IDatabaseDriver, em?: EntityManager): MsSqlSchemaGenerator;
56
58
  allowsComparingTuples(): boolean;
package/MsSqlPlatform.js CHANGED
@@ -165,7 +165,7 @@ class MsSqlPlatform extends knex_1.AbstractSqlPlatform {
165
165
  return true;
166
166
  }
167
167
  quoteIdentifier(id) {
168
- return `[${id.replace('.', `].[`)}]`;
168
+ return `[${id.toString().replace('.', `].[`)}]`;
169
169
  }
170
170
  escape(value) {
171
171
  if (value instanceof UnicodeStringType_1.UnicodeString) {
package/index.mjs CHANGED
@@ -233,6 +233,7 @@ export const getOnConflictReturningFields = mod.getOnConflictReturningFields;
233
233
  export const helper = mod.helper;
234
234
  export const knex = mod.knex;
235
235
  export const parseJsonSafe = mod.parseJsonSafe;
236
+ export const quote = mod.quote;
236
237
  export const raw = mod.raw;
237
238
  export const ref = mod.ref;
238
239
  export const rel = mod.rel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/mssql",
3
- "version": "6.4.17-dev.29",
3
+ "version": "6.4.17-dev.30",
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",
@@ -58,7 +58,7 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "@mikro-orm/knex": "6.4.17-dev.29",
61
+ "@mikro-orm/knex": "6.4.17-dev.30",
62
62
  "tedious": "19.0.0",
63
63
  "tsqlstring": "1.0.1"
64
64
  },
@@ -66,6 +66,6 @@
66
66
  "@mikro-orm/core": "^6.4.16"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.4.17-dev.29"
69
+ "@mikro-orm/core": "6.4.17-dev.30"
70
70
  }
71
71
  }