@mikro-orm/core 7.0.0-dev.196 → 7.0.0-dev.198
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/package.json +1 -1
- package/utils/Configuration.d.ts +15 -0
- package/utils/Utils.js +1 -1
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.198",
|
|
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/Configuration.d.ts
CHANGED
|
@@ -257,6 +257,21 @@ export interface ConnectionOptions {
|
|
|
257
257
|
driverOptions?: Dictionary;
|
|
258
258
|
/** Callback to execute when a new connection is created. */
|
|
259
259
|
onCreateConnection?: (connection: unknown) => Promise<void>;
|
|
260
|
+
/**
|
|
261
|
+
* SQLite/libSQL: databases to attach on connection.
|
|
262
|
+
* Each attached database acts as a schema, accessible via `schema.table` syntax.
|
|
263
|
+
* Entities can reference attached databases via `@Entity({ schema: 'db_name' })`.
|
|
264
|
+
* Note: Not supported for remote libSQL connections.
|
|
265
|
+
* @example
|
|
266
|
+
* attachDatabases: [
|
|
267
|
+
* { name: 'users_db', path: './users.db' },
|
|
268
|
+
* { name: 'logs_db', path: '/var/data/logs.db' },
|
|
269
|
+
* ]
|
|
270
|
+
*/
|
|
271
|
+
attachDatabases?: {
|
|
272
|
+
name: string;
|
|
273
|
+
path: string;
|
|
274
|
+
}[];
|
|
260
275
|
}
|
|
261
276
|
/**
|
|
262
277
|
* Configuration options for database migrations.
|
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.198';
|
|
127
127
|
/**
|
|
128
128
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
129
129
|
*/
|