@mikro-orm/core 7.0.0-dev.247 → 7.0.0-dev.248
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/drivers/IDatabaseDriver.d.ts +24 -4
- package/package.json +1 -1
- package/utils/Utils.js +1 -1
|
@@ -155,12 +155,18 @@ export interface FindOptions<Entity, Hint extends string = never, Fields extends
|
|
|
155
155
|
lockTableAliases?: string[];
|
|
156
156
|
ctx?: Transaction;
|
|
157
157
|
connectionType?: ConnectionType;
|
|
158
|
-
/**
|
|
159
|
-
indexHint?: string;
|
|
158
|
+
/** SQL: appended to FROM clause (e.g. `'force index(my_index)'`); MongoDB: index name or spec passed as `hint`. */
|
|
159
|
+
indexHint?: string | Dictionary;
|
|
160
160
|
/** sql only */
|
|
161
161
|
comments?: string | string[];
|
|
162
162
|
/** sql only */
|
|
163
163
|
hintComments?: string | string[];
|
|
164
|
+
/** SQL: collation name string applied as COLLATE to ORDER BY; MongoDB: CollationOptions object. */
|
|
165
|
+
collation?: CollationOptions | string;
|
|
166
|
+
/** mongodb only */
|
|
167
|
+
maxTimeMS?: number;
|
|
168
|
+
/** mongodb only */
|
|
169
|
+
allowDiskUse?: boolean;
|
|
164
170
|
loggerContext?: LogContext;
|
|
165
171
|
logging?: LoggingOptions;
|
|
166
172
|
/** @internal used to apply filters to the auto-joined relations */
|
|
@@ -211,12 +217,16 @@ export interface CountOptions<T extends object, P extends string = never> {
|
|
|
211
217
|
ctx?: Transaction;
|
|
212
218
|
connectionType?: ConnectionType;
|
|
213
219
|
flushMode?: FlushMode | `${FlushMode}`;
|
|
214
|
-
/**
|
|
215
|
-
indexHint?: string;
|
|
220
|
+
/** SQL: appended to FROM clause (e.g. `'force index(my_index)'`); MongoDB: index name or spec passed as `hint`. */
|
|
221
|
+
indexHint?: string | Dictionary;
|
|
216
222
|
/** sql only */
|
|
217
223
|
comments?: string | string[];
|
|
218
224
|
/** sql only */
|
|
219
225
|
hintComments?: string | string[];
|
|
226
|
+
/** SQL: collation name string applied as COLLATE; MongoDB: CollationOptions object. */
|
|
227
|
+
collation?: CollationOptions | string;
|
|
228
|
+
/** mongodb only */
|
|
229
|
+
maxTimeMS?: number;
|
|
220
230
|
loggerContext?: LogContext;
|
|
221
231
|
logging?: LoggingOptions;
|
|
222
232
|
/** @internal used to apply filters to the auto-joined relations */
|
|
@@ -244,6 +254,16 @@ export interface DriverMethodOptions {
|
|
|
244
254
|
schema?: string;
|
|
245
255
|
loggerContext?: LogContext;
|
|
246
256
|
}
|
|
257
|
+
export interface CollationOptions {
|
|
258
|
+
locale: string;
|
|
259
|
+
caseLevel?: boolean;
|
|
260
|
+
caseFirst?: string;
|
|
261
|
+
strength?: number;
|
|
262
|
+
numericOrdering?: boolean;
|
|
263
|
+
alternate?: string;
|
|
264
|
+
maxVariable?: string;
|
|
265
|
+
backwards?: boolean;
|
|
266
|
+
}
|
|
247
267
|
export interface GetReferenceOptions {
|
|
248
268
|
wrapped?: boolean;
|
|
249
269
|
convertCustomTypes?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.248",
|
|
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",
|
package/utils/Utils.js
CHANGED
|
@@ -123,7 +123,7 @@ export function parseJsonSafe(value) {
|
|
|
123
123
|
}
|
|
124
124
|
export class Utils {
|
|
125
125
|
static PK_SEPARATOR = '~~~';
|
|
126
|
-
static #ORM_VERSION = '7.0.0-dev.
|
|
126
|
+
static #ORM_VERSION = '7.0.0-dev.248';
|
|
127
127
|
/**
|
|
128
128
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
129
129
|
*/
|