@mikro-orm/mssql 6.4.17-dev.5 → 6.4.17-dev.51

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
@@ -226,12 +226,14 @@ export const compareBuffers = mod.compareBuffers;
226
226
  export const compareObjects = mod.compareObjects;
227
227
  export const createSqlFunction = mod.createSqlFunction;
228
228
  export const defineConfig = mod.defineConfig;
229
+ export const defineEntity = mod.defineEntity;
229
230
  export const equals = mod.equals;
230
231
  export const getOnConflictFields = mod.getOnConflictFields;
231
232
  export const getOnConflictReturningFields = mod.getOnConflictReturningFields;
232
233
  export const helper = mod.helper;
233
234
  export const knex = mod.knex;
234
235
  export const parseJsonSafe = mod.parseJsonSafe;
236
+ export const quote = mod.quote;
235
237
  export const raw = mod.raw;
236
238
  export const ref = mod.ref;
237
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.5",
3
+ "version": "6.4.17-dev.51",
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.5",
61
+ "@mikro-orm/knex": "6.4.17-dev.51",
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.5"
69
+ "@mikro-orm/core": "6.4.17-dev.51"
70
70
  }
71
71
  }