@mikro-orm/core 7.0.0-dev.96 → 7.0.0-dev.98
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CountOptions, type DeleteOptions, type DriverMethodOptions, EntityManagerType, type FindOneOptions, type FindOptions, type IDatabaseDriver, type LockOptions, type NativeInsertUpdateManyOptions, type NativeInsertUpdateOptions, type OrderDefinition, type StreamOptions } from './IDatabaseDriver.js';
|
|
2
|
-
import type { ConnectionType, Dictionary, EntityData, EntityDictionary, EntityMetadata, EntityName, EntityProperty, FilterQuery, PopulateOptions, Primary } from '../typings.js';
|
|
2
|
+
import type { ConnectionType, Constructor, Dictionary, EntityData, EntityDictionary, EntityMetadata, EntityName, EntityProperty, FilterQuery, PopulateOptions, Primary } from '../typings.js';
|
|
3
3
|
import type { MetadataStorage } from '../metadata/MetadataStorage.js';
|
|
4
4
|
import type { Connection, QueryResult, Transaction } from '../connections/Connection.js';
|
|
5
5
|
import { type Configuration, type ConnectionOptions } from '../utils/Configuration.js';
|
|
@@ -10,6 +10,7 @@ import type { Collection } from '../entity/Collection.js';
|
|
|
10
10
|
import { EntityManager } from '../EntityManager.js';
|
|
11
11
|
import { DriverException } from '../exceptions.js';
|
|
12
12
|
import type { Logger } from '../logging/Logger.js';
|
|
13
|
+
import { MikroORM } from '../MikroORM.js';
|
|
13
14
|
export declare abstract class DatabaseDriver<C extends Connection> implements IDatabaseDriver<C> {
|
|
14
15
|
readonly config: Configuration;
|
|
15
16
|
protected readonly dependencies: string[];
|
|
@@ -77,4 +78,6 @@ export declare abstract class DatabaseDriver<C extends Connection> implements ID
|
|
|
77
78
|
schema?: string;
|
|
78
79
|
parentSchema?: string;
|
|
79
80
|
}): string | undefined;
|
|
81
|
+
/** @internal */
|
|
82
|
+
getORMClass(): Constructor<MikroORM>;
|
|
80
83
|
}
|
|
@@ -9,6 +9,7 @@ import { CursorError, ValidationError } from '../errors.js';
|
|
|
9
9
|
import { DriverException } from '../exceptions.js';
|
|
10
10
|
import { helper } from '../entity/wrap.js';
|
|
11
11
|
import { JsonType } from '../types/JsonType.js';
|
|
12
|
+
import { MikroORM } from '../MikroORM.js';
|
|
12
13
|
export class DatabaseDriver {
|
|
13
14
|
config;
|
|
14
15
|
dependencies;
|
|
@@ -384,4 +385,8 @@ export class DatabaseDriver {
|
|
|
384
385
|
const schemaName = meta?.schema === '*' ? this.config.getSchema() : meta?.schema;
|
|
385
386
|
return options?.schema ?? options?.parentSchema ?? schemaName ?? this.config.getSchema();
|
|
386
387
|
}
|
|
388
|
+
/** @internal */
|
|
389
|
+
getORMClass() {
|
|
390
|
+
return MikroORM;
|
|
391
|
+
}
|
|
387
392
|
}
|
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.98",
|
|
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
|
@@ -125,7 +125,7 @@ export function parseJsonSafe(value) {
|
|
|
125
125
|
}
|
|
126
126
|
export class Utils {
|
|
127
127
|
static PK_SEPARATOR = '~~~';
|
|
128
|
-
static #ORM_VERSION = '7.0.0-dev.
|
|
128
|
+
static #ORM_VERSION = '7.0.0-dev.98';
|
|
129
129
|
/* v8 ignore next */
|
|
130
130
|
static dynamicImportProvider = (id) => import(id);
|
|
131
131
|
/**
|