@mikro-orm/mssql 6.3.11-dev.7 → 6.3.11-dev.8
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/MsSqlPlatform.d.ts +1 -1
- package/MsSqlPlatform.js +1 -13
- package/package.json +3 -3
package/MsSqlPlatform.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare class MsSqlPlatform extends AbstractSqlPlatform {
|
|
|
51
51
|
supportsMultipleCascadePaths(): boolean;
|
|
52
52
|
supportsMultipleStatements(): boolean;
|
|
53
53
|
quoteIdentifier(id: string): string;
|
|
54
|
-
|
|
54
|
+
escape(value: any): string;
|
|
55
55
|
getSchemaGenerator(driver: IDatabaseDriver, em?: EntityManager): MsSqlSchemaGenerator;
|
|
56
56
|
allowsComparingTuples(): boolean;
|
|
57
57
|
}
|
package/MsSqlPlatform.js
CHANGED
|
@@ -166,22 +166,10 @@ class MsSqlPlatform extends knex_1.AbstractSqlPlatform {
|
|
|
166
166
|
quoteIdentifier(id) {
|
|
167
167
|
return `[${id.replace('.', `].[`)}]`;
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
/* istanbul ignore if */
|
|
171
|
-
if (knex_1.Utils.isRawSql(value)) {
|
|
172
|
-
return this.formatQuery(value.sql, value.params ?? []);
|
|
173
|
-
}
|
|
174
|
-
/* istanbul ignore if */
|
|
175
|
-
if (this.isRaw(value)) {
|
|
176
|
-
return value;
|
|
177
|
-
}
|
|
169
|
+
escape(value) {
|
|
178
170
|
if (value instanceof UnicodeStringType_1.UnicodeString) {
|
|
179
171
|
return `N${tsqlstring_1.default.escape(value.value)}`;
|
|
180
172
|
}
|
|
181
|
-
/* istanbul ignore if */
|
|
182
|
-
if (knex_1.Utils.isPlainObject(value) || value?.[knex_1.JsonProperty]) {
|
|
183
|
-
return tsqlstring_1.default.escape(JSON.stringify(value), true, this.timezone ?? 'local');
|
|
184
|
-
}
|
|
185
173
|
if (value instanceof Buffer) {
|
|
186
174
|
return `0x${value.toString('hex')}`;
|
|
187
175
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/mssql",
|
|
3
|
-
"version": "6.3.11-dev.
|
|
3
|
+
"version": "6.3.11-dev.8",
|
|
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.3.11-dev.
|
|
61
|
+
"@mikro-orm/knex": "6.3.11-dev.8",
|
|
62
62
|
"tedious": "19.0.0",
|
|
63
63
|
"tsqlstring": "1.0.1"
|
|
64
64
|
},
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.3.10"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.3.11-dev.
|
|
69
|
+
"@mikro-orm/core": "6.3.11-dev.8"
|
|
70
70
|
}
|
|
71
71
|
}
|