@mikro-orm/knex 6.0.0-dev.24 → 6.0.0-dev.25
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.0.0-dev.
|
|
3
|
+
"version": "6.0.0-dev.25",
|
|
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",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"@mikro-orm/core": "^5.6.8"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "~6.0.0-dev.
|
|
69
|
+
"@mikro-orm/core": "~6.0.0-dev.25"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -8,8 +8,6 @@ export declare class SqlSchemaGenerator extends AbstractSchemaGenerator<Abstract
|
|
|
8
8
|
private readonly options;
|
|
9
9
|
protected lastEnsuredDatabase?: string;
|
|
10
10
|
static register(orm: MikroORM): void;
|
|
11
|
-
/** @deprecated use `dropSchema` and `createSchema` commands respectively */
|
|
12
|
-
generate(): Promise<string>;
|
|
13
11
|
createSchema(options?: {
|
|
14
12
|
wrap?: boolean;
|
|
15
13
|
schema?: string;
|
|
@@ -13,14 +13,6 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
13
13
|
static register(orm) {
|
|
14
14
|
orm.config.registerExtension('@mikro-orm/schema-generator', () => new SqlSchemaGenerator(orm.em));
|
|
15
15
|
}
|
|
16
|
-
/** @deprecated use `dropSchema` and `createSchema` commands respectively */
|
|
17
|
-
async generate() {
|
|
18
|
-
const [dropSchema, createSchema] = await Promise.all([
|
|
19
|
-
this.getDropSchemaSQL({ wrap: false }),
|
|
20
|
-
this.getCreateSchemaSQL({ wrap: false }),
|
|
21
|
-
]);
|
|
22
|
-
return this.wrapSchema(dropSchema + createSchema);
|
|
23
|
-
}
|
|
24
16
|
async createSchema(options) {
|
|
25
17
|
await this.ensureDatabase();
|
|
26
18
|
const sql = await this.getCreateSchemaSQL(options);
|