@mikro-orm/knex 7.0.0-dev.1 → 7.0.0-dev.11
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/AbstractSqlConnection.d.ts +2 -2
- package/AbstractSqlConnection.js +33 -31
- package/AbstractSqlDriver.d.ts +14 -12
- package/AbstractSqlDriver.js +198 -186
- package/AbstractSqlPlatform.d.ts +4 -4
- package/AbstractSqlPlatform.js +17 -21
- package/PivotCollectionPersister.d.ts +1 -1
- package/PivotCollectionPersister.js +5 -8
- package/SqlEntityManager.d.ts +4 -3
- package/SqlEntityManager.js +2 -6
- package/SqlEntityRepository.d.ts +2 -2
- package/SqlEntityRepository.js +2 -6
- package/dialects/index.d.ts +4 -4
- package/dialects/index.js +4 -20
- package/dialects/mssql/MsSqlNativeQueryBuilder.d.ts +1 -1
- package/dialects/mssql/MsSqlNativeQueryBuilder.js +29 -29
- package/dialects/mssql/index.d.ts +1 -1
- package/dialects/mssql/index.js +1 -17
- package/dialects/mysql/MySqlExceptionConverter.js +16 -19
- package/dialects/mysql/MySqlNativeQueryBuilder.d.ts +1 -1
- package/dialects/mysql/MySqlNativeQueryBuilder.js +13 -17
- package/dialects/mysql/MySqlPlatform.d.ts +5 -5
- package/dialects/mysql/MySqlPlatform.js +16 -20
- package/dialects/mysql/MySqlSchemaHelper.d.ts +5 -5
- package/dialects/mysql/MySqlSchemaHelper.js +8 -12
- package/dialects/mysql/index.d.ts +4 -4
- package/dialects/mysql/index.js +4 -20
- package/dialects/postgresql/PostgreSqlNativeQueryBuilder.d.ts +1 -1
- package/dialects/postgresql/PostgreSqlNativeQueryBuilder.js +2 -6
- package/dialects/postgresql/index.d.ts +1 -1
- package/dialects/postgresql/index.js +1 -17
- package/dialects/sqlite/BaseSqliteConnection.d.ts +2 -2
- package/dialects/sqlite/BaseSqliteConnection.js +14 -12
- package/dialects/sqlite/BaseSqlitePlatform.d.ts +4 -5
- package/dialects/sqlite/BaseSqlitePlatform.js +11 -19
- package/dialects/sqlite/SqliteExceptionConverter.js +16 -19
- package/dialects/sqlite/SqliteNativeQueryBuilder.d.ts +1 -1
- package/dialects/sqlite/SqliteNativeQueryBuilder.js +2 -6
- package/dialects/sqlite/SqliteSchemaHelper.d.ts +5 -5
- package/dialects/sqlite/SqliteSchemaHelper.js +22 -26
- package/dialects/sqlite/index.d.ts +5 -5
- package/dialects/sqlite/index.js +5 -21
- package/index.d.ts +11 -11
- package/index.js +13 -34
- package/package.json +7 -16
- package/query/ArrayCriteriaNode.d.ts +2 -2
- package/query/ArrayCriteriaNode.js +2 -6
- package/query/CriteriaNode.d.ts +1 -1
- package/query/CriteriaNode.js +25 -33
- package/query/CriteriaNodeFactory.d.ts +1 -1
- package/query/CriteriaNodeFactory.js +17 -21
- package/query/NativeQueryBuilder.d.ts +2 -2
- package/query/NativeQueryBuilder.js +33 -37
- package/query/ObjectCriteriaNode.d.ts +2 -2
- package/query/ObjectCriteriaNode.js +43 -43
- package/query/QueryBuilder.d.ts +17 -15
- package/query/QueryBuilder.js +204 -193
- package/query/QueryBuilderHelper.d.ts +4 -4
- package/query/QueryBuilderHelper.js +86 -96
- package/query/ScalarCriteriaNode.d.ts +2 -2
- package/query/ScalarCriteriaNode.js +12 -16
- package/query/enums.js +4 -7
- package/query/index.d.ts +9 -9
- package/query/index.js +9 -25
- package/schema/DatabaseSchema.d.ts +3 -3
- package/schema/DatabaseSchema.js +7 -11
- package/schema/DatabaseTable.d.ts +3 -3
- package/schema/DatabaseTable.js +44 -33
- package/schema/SchemaComparator.d.ts +4 -4
- package/schema/SchemaComparator.js +15 -19
- package/schema/SchemaHelper.d.ts +5 -5
- package/schema/SchemaHelper.js +22 -26
- package/schema/SqlSchemaGenerator.d.ts +4 -4
- package/schema/SqlSchemaGenerator.js +23 -36
- package/schema/index.d.ts +5 -5
- package/schema/index.js +5 -21
- package/typings.d.ts +7 -4
- package/typings.js +1 -2
- package/index.mjs +0 -232
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const DatabaseSchema_1 = require("./DatabaseSchema");
|
|
6
|
-
const SchemaComparator_1 = require("./SchemaComparator");
|
|
7
|
-
class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
1
|
+
import { AbstractSchemaGenerator, Utils, } from '@mikro-orm/core';
|
|
2
|
+
import { DatabaseSchema } from './DatabaseSchema.js';
|
|
3
|
+
import { SchemaComparator } from './SchemaComparator.js';
|
|
4
|
+
export class SqlSchemaGenerator extends AbstractSchemaGenerator {
|
|
8
5
|
helper = this.platform.getSchemaHelper();
|
|
9
6
|
options = this.config.get('schemaGenerator');
|
|
10
7
|
lastEnsuredDatabase;
|
|
@@ -48,7 +45,7 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
48
45
|
getTargetSchema(schema) {
|
|
49
46
|
const metadata = this.getOrderedMetadata(schema);
|
|
50
47
|
const schemaName = schema ?? this.config.get('schema') ?? this.platform.getDefaultSchemaName();
|
|
51
|
-
return
|
|
48
|
+
return DatabaseSchema.fromMetadata(metadata, this.platform, this.config, schemaName);
|
|
52
49
|
}
|
|
53
50
|
async getCreateSchemaSQL(options = {}) {
|
|
54
51
|
const toSchema = this.getTargetSchema(options.schema);
|
|
@@ -63,7 +60,7 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
63
60
|
if (this.platform.supportsNativeEnums()) {
|
|
64
61
|
const created = [];
|
|
65
62
|
for (const [enumName, enumOptions] of Object.entries(toSchema.getNativeEnums())) {
|
|
66
|
-
/*
|
|
63
|
+
/* v8 ignore next 3 */
|
|
67
64
|
if (created.includes(enumName)) {
|
|
68
65
|
continue;
|
|
69
66
|
}
|
|
@@ -101,36 +98,26 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
101
98
|
}
|
|
102
99
|
async clearDatabase(options) {
|
|
103
100
|
// truncate by default, so no value is considered as true
|
|
104
|
-
/*
|
|
101
|
+
/* v8 ignore next 3 */
|
|
105
102
|
if (options?.truncate === false) {
|
|
106
103
|
return super.clearDatabase(options);
|
|
107
104
|
}
|
|
108
105
|
await this.execute(this.helper.disableForeignKeysSQL());
|
|
109
|
-
|
|
106
|
+
const schema = options?.schema ?? this.config.get('schema', this.platform.getDefaultSchemaName());
|
|
107
|
+
for (const meta of this.getOrderedMetadata(schema).reverse()) {
|
|
110
108
|
await this.driver.createQueryBuilder(meta.className, this.em?.getTransactionContext(), 'write', false)
|
|
111
|
-
.withSchema(
|
|
112
|
-
.truncate()
|
|
109
|
+
.withSchema(schema)
|
|
110
|
+
.truncate()
|
|
111
|
+
.execute();
|
|
113
112
|
}
|
|
114
113
|
await this.execute(this.helper.enableForeignKeysSQL());
|
|
115
|
-
// const parts: string[] = [this.helper.disableForeignKeysSQL()];
|
|
116
|
-
//
|
|
117
|
-
// for (const meta of this.getOrderedMetadata(options?.schema).reverse()) {
|
|
118
|
-
// const query = this.driver.createQueryBuilder(meta.className, this.em?.getTransactionContext(), 'write', false)
|
|
119
|
-
// .withSchema(options?.schema)
|
|
120
|
-
// .truncate()
|
|
121
|
-
// .getFormattedQuery();
|
|
122
|
-
// parts.push(query);
|
|
123
|
-
// }
|
|
124
|
-
//
|
|
125
|
-
// parts.push(this.helper.enableForeignKeysSQL());
|
|
126
|
-
// await this.execute(parts.join(';\n'));
|
|
127
114
|
this.clearIdentityMap();
|
|
128
115
|
}
|
|
129
116
|
async getDropSchemaSQL(options = {}) {
|
|
130
117
|
await this.ensureDatabase();
|
|
131
118
|
const metadata = this.getOrderedMetadata(options.schema).reverse();
|
|
132
119
|
const schemas = this.getTargetSchema(options.schema).getNamespaces();
|
|
133
|
-
const schema = await
|
|
120
|
+
const schema = await DatabaseSchema.create(this.connection, this.platform, this.config, options.schema, schemas);
|
|
134
121
|
const ret = [];
|
|
135
122
|
// remove FKs explicitly if we can't use a cascading statement and we don't disable FK checks (we need this for circular relations)
|
|
136
123
|
for (const meta of metadata) {
|
|
@@ -161,7 +148,7 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
161
148
|
}
|
|
162
149
|
getSchemaName(meta, options) {
|
|
163
150
|
const schemaName = options.schema ?? this.config.get('schema');
|
|
164
|
-
/*
|
|
151
|
+
/* v8 ignore next */
|
|
165
152
|
const resolvedName = meta.schema && meta.schema === '*' ? schemaName : (meta.schema ?? schemaName);
|
|
166
153
|
// skip default schema name
|
|
167
154
|
if (resolvedName === this.platform.getDefaultSchemaName()) {
|
|
@@ -176,7 +163,7 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
176
163
|
async getUpdateSchemaSQL(options = {}) {
|
|
177
164
|
await this.ensureDatabase();
|
|
178
165
|
const { fromSchema, toSchema } = await this.prepareSchemaForComparison(options);
|
|
179
|
-
const comparator = new
|
|
166
|
+
const comparator = new SchemaComparator(this.platform);
|
|
180
167
|
const diffUp = comparator.compare(fromSchema, toSchema);
|
|
181
168
|
return this.diffToSQL(diffUp, options);
|
|
182
169
|
}
|
|
@@ -185,7 +172,7 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
185
172
|
await this.ensureDatabase();
|
|
186
173
|
}
|
|
187
174
|
const { fromSchema, toSchema } = await this.prepareSchemaForComparison(options);
|
|
188
|
-
const comparator = new
|
|
175
|
+
const comparator = new SchemaComparator(this.platform);
|
|
189
176
|
const diffUp = comparator.compare(fromSchema, toSchema);
|
|
190
177
|
const diffDown = comparator.compare(toSchema, fromSchema, diffUp);
|
|
191
178
|
return {
|
|
@@ -198,7 +185,7 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
198
185
|
options.dropTables ??= true;
|
|
199
186
|
const toSchema = this.getTargetSchema(options.schema);
|
|
200
187
|
const schemas = toSchema.getNamespaces();
|
|
201
|
-
const fromSchema = options.fromSchema ?? await
|
|
188
|
+
const fromSchema = options.fromSchema ?? (await DatabaseSchema.create(this.connection, this.platform, this.config, options.schema, schemas));
|
|
202
189
|
const wildcardSchemaTables = Object.values(this.metadata.getAll()).filter(meta => meta.schema === '*').map(meta => meta.tableName);
|
|
203
190
|
fromSchema.prune(options.schema, wildcardSchemaTables);
|
|
204
191
|
toSchema.prune(options.schema, wildcardSchemaTables);
|
|
@@ -222,7 +209,7 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
222
209
|
if (!options.safe && this.options.createForeignKeyConstraints) {
|
|
223
210
|
for (const orphanedForeignKey of schemaDiff.orphanedForeignKeys) {
|
|
224
211
|
const [schemaName, tableName] = this.helper.splitTableName(orphanedForeignKey.localTableName, true);
|
|
225
|
-
/*
|
|
212
|
+
/* v8 ignore next */
|
|
226
213
|
const name = (schemaName ? schemaName + '.' : '') + tableName;
|
|
227
214
|
this.append(ret, this.helper.dropForeignKey(name, orphanedForeignKey.constraintName));
|
|
228
215
|
}
|
|
@@ -250,7 +237,7 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
250
237
|
for (const table of Object.values(schemaDiff.removedTables)) {
|
|
251
238
|
this.append(ret, this.helper.dropTableIfExists(table.name, table.schema));
|
|
252
239
|
}
|
|
253
|
-
if (
|
|
240
|
+
if (Utils.hasObjectKeys(schemaDiff.removedTables)) {
|
|
254
241
|
ret.push('');
|
|
255
242
|
}
|
|
256
243
|
}
|
|
@@ -337,14 +324,14 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
337
324
|
return;
|
|
338
325
|
}
|
|
339
326
|
// console.log(groups);
|
|
340
|
-
await
|
|
327
|
+
await Utils.runSerial(groups.flat(), line => this.driver.execute(line));
|
|
341
328
|
}
|
|
342
329
|
async dropTableIfExists(name, schema) {
|
|
343
330
|
const sql = this.helper.dropTableIfExists(name, schema);
|
|
344
331
|
return this.execute(sql);
|
|
345
332
|
}
|
|
346
333
|
wrapSchema(sql, options) {
|
|
347
|
-
const array =
|
|
334
|
+
const array = Utils.asArray(sql);
|
|
348
335
|
if (array.length === 0) {
|
|
349
336
|
return '';
|
|
350
337
|
}
|
|
@@ -363,5 +350,5 @@ class SqlSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
363
350
|
return this.helper.append(array, sql, pad);
|
|
364
351
|
}
|
|
365
352
|
}
|
|
366
|
-
|
|
367
|
-
|
|
353
|
+
// for back compatibility
|
|
354
|
+
export { SqlSchemaGenerator as SchemaGenerator };
|
package/schema/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './DatabaseSchema';
|
|
2
|
-
export * from './DatabaseTable';
|
|
3
|
-
export * from './SqlSchemaGenerator';
|
|
4
|
-
export * from './SchemaHelper';
|
|
5
|
-
export * from './SchemaComparator';
|
|
1
|
+
export * from './DatabaseSchema.js';
|
|
2
|
+
export * from './DatabaseTable.js';
|
|
3
|
+
export * from './SqlSchemaGenerator.js';
|
|
4
|
+
export * from './SchemaHelper.js';
|
|
5
|
+
export * from './SchemaComparator.js';
|
package/schema/index.js
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./DatabaseSchema"), exports);
|
|
18
|
-
__exportStar(require("./DatabaseTable"), exports);
|
|
19
|
-
__exportStar(require("./SqlSchemaGenerator"), exports);
|
|
20
|
-
__exportStar(require("./SchemaHelper"), exports);
|
|
21
|
-
__exportStar(require("./SchemaComparator"), exports);
|
|
1
|
+
export * from './DatabaseSchema.js';
|
|
2
|
+
export * from './DatabaseTable.js';
|
|
3
|
+
export * from './SqlSchemaGenerator.js';
|
|
4
|
+
export * from './SchemaHelper.js';
|
|
5
|
+
export * from './SchemaComparator.js';
|
package/typings.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { DeferMode, CheckCallback, Dictionary, EntityProperty, GroupOperator, RawQueryFragment, QBFilterQuery, QueryOrderMap, Type, QueryFlag, AnyEntity, EntityName } from '@mikro-orm/core';
|
|
2
|
-
import type { JoinType, QueryType } from './query/enums';
|
|
3
|
-
import type { DatabaseSchema
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
2
|
+
import type { JoinType, QueryType } from './query/enums.js';
|
|
3
|
+
import type { DatabaseSchema } from './schema/DatabaseSchema.js';
|
|
4
|
+
import type { DatabaseTable } from './schema/DatabaseTable.js';
|
|
5
|
+
import type { QueryBuilder } from './query/QueryBuilder.js';
|
|
6
|
+
import type { NativeQueryBuilder } from './query/NativeQueryBuilder.js';
|
|
6
7
|
export interface Table {
|
|
7
8
|
table_name: string;
|
|
8
9
|
schema_name?: string;
|
|
@@ -162,12 +163,14 @@ export interface IQueryBuilder<T> {
|
|
|
162
163
|
setFlag(flag: QueryFlag): this;
|
|
163
164
|
unsetFlag(flag: QueryFlag): this;
|
|
164
165
|
hasFlag(flag: QueryFlag): boolean;
|
|
166
|
+
scheduleFilterCheck(path: string): void;
|
|
165
167
|
}
|
|
166
168
|
export interface ICriteriaNodeProcessOptions {
|
|
167
169
|
alias?: string;
|
|
168
170
|
matchPopulateJoins?: boolean;
|
|
169
171
|
ignoreBranching?: boolean;
|
|
170
172
|
preferNoBranch?: boolean;
|
|
173
|
+
type?: 'orderBy';
|
|
171
174
|
}
|
|
172
175
|
export interface ICriteriaNode<T extends object> {
|
|
173
176
|
readonly entityName: string;
|
package/typings.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/index.mjs
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import mod from "./index.js";
|
|
2
|
-
|
|
3
|
-
export default mod;
|
|
4
|
-
export const ALIAS_REPLACEMENT = mod.ALIAS_REPLACEMENT;
|
|
5
|
-
export const ALIAS_REPLACEMENT_RE = mod.ALIAS_REPLACEMENT_RE;
|
|
6
|
-
export const ARRAY_OPERATORS = mod.ARRAY_OPERATORS;
|
|
7
|
-
export const AbstractNamingStrategy = mod.AbstractNamingStrategy;
|
|
8
|
-
export const AbstractSchemaGenerator = mod.AbstractSchemaGenerator;
|
|
9
|
-
export const AbstractSqlConnection = mod.AbstractSqlConnection;
|
|
10
|
-
export const AbstractSqlDriver = mod.AbstractSqlDriver;
|
|
11
|
-
export const AbstractSqlPlatform = mod.AbstractSqlPlatform;
|
|
12
|
-
export const AfterCreate = mod.AfterCreate;
|
|
13
|
-
export const AfterDelete = mod.AfterDelete;
|
|
14
|
-
export const AfterUpdate = mod.AfterUpdate;
|
|
15
|
-
export const AfterUpsert = mod.AfterUpsert;
|
|
16
|
-
export const ArrayCollection = mod.ArrayCollection;
|
|
17
|
-
export const ArrayCriteriaNode = mod.ArrayCriteriaNode;
|
|
18
|
-
export const ArrayType = mod.ArrayType;
|
|
19
|
-
export const BaseEntity = mod.BaseEntity;
|
|
20
|
-
export const BaseSqliteConnection = mod.BaseSqliteConnection;
|
|
21
|
-
export const BaseSqlitePlatform = mod.BaseSqlitePlatform;
|
|
22
|
-
export const BeforeCreate = mod.BeforeCreate;
|
|
23
|
-
export const BeforeDelete = mod.BeforeDelete;
|
|
24
|
-
export const BeforeUpdate = mod.BeforeUpdate;
|
|
25
|
-
export const BeforeUpsert = mod.BeforeUpsert;
|
|
26
|
-
export const BigIntType = mod.BigIntType;
|
|
27
|
-
export const BlobType = mod.BlobType;
|
|
28
|
-
export const BooleanType = mod.BooleanType;
|
|
29
|
-
export const Cascade = mod.Cascade;
|
|
30
|
-
export const ChangeSet = mod.ChangeSet;
|
|
31
|
-
export const ChangeSetComputer = mod.ChangeSetComputer;
|
|
32
|
-
export const ChangeSetPersister = mod.ChangeSetPersister;
|
|
33
|
-
export const ChangeSetType = mod.ChangeSetType;
|
|
34
|
-
export const CharacterType = mod.CharacterType;
|
|
35
|
-
export const Check = mod.Check;
|
|
36
|
-
export const CheckConstraintViolationException = mod.CheckConstraintViolationException;
|
|
37
|
-
export const Collection = mod.Collection;
|
|
38
|
-
export const CommitOrderCalculator = mod.CommitOrderCalculator;
|
|
39
|
-
export const Config = mod.Config;
|
|
40
|
-
export const Configuration = mod.Configuration;
|
|
41
|
-
export const ConfigurationLoader = mod.ConfigurationLoader;
|
|
42
|
-
export const Connection = mod.Connection;
|
|
43
|
-
export const ConnectionException = mod.ConnectionException;
|
|
44
|
-
export const ConstraintViolationException = mod.ConstraintViolationException;
|
|
45
|
-
export const CreateRequestContext = mod.CreateRequestContext;
|
|
46
|
-
export const CriteriaNode = mod.CriteriaNode;
|
|
47
|
-
export const CriteriaNodeFactory = mod.CriteriaNodeFactory;
|
|
48
|
-
export const Cursor = mod.Cursor;
|
|
49
|
-
export const CursorError = mod.CursorError;
|
|
50
|
-
export const DatabaseDriver = mod.DatabaseDriver;
|
|
51
|
-
export const DatabaseObjectExistsException = mod.DatabaseObjectExistsException;
|
|
52
|
-
export const DatabaseObjectNotFoundException = mod.DatabaseObjectNotFoundException;
|
|
53
|
-
export const DatabaseSchema = mod.DatabaseSchema;
|
|
54
|
-
export const DatabaseTable = mod.DatabaseTable;
|
|
55
|
-
export const DataloaderType = mod.DataloaderType;
|
|
56
|
-
export const DataloaderUtils = mod.DataloaderUtils;
|
|
57
|
-
export const DateTimeType = mod.DateTimeType;
|
|
58
|
-
export const DateType = mod.DateType;
|
|
59
|
-
export const DeadlockException = mod.DeadlockException;
|
|
60
|
-
export const DecimalType = mod.DecimalType;
|
|
61
|
-
export const DefaultLogger = mod.DefaultLogger;
|
|
62
|
-
export const DeferMode = mod.DeferMode;
|
|
63
|
-
export const DoubleType = mod.DoubleType;
|
|
64
|
-
export const DriverException = mod.DriverException;
|
|
65
|
-
export const EagerProps = mod.EagerProps;
|
|
66
|
-
export const Embeddable = mod.Embeddable;
|
|
67
|
-
export const Embedded = mod.Embedded;
|
|
68
|
-
export const EnsureRequestContext = mod.EnsureRequestContext;
|
|
69
|
-
export const Entity = mod.Entity;
|
|
70
|
-
export const EntityAssigner = mod.EntityAssigner;
|
|
71
|
-
export const EntityCaseNamingStrategy = mod.EntityCaseNamingStrategy;
|
|
72
|
-
export const EntityComparator = mod.EntityComparator;
|
|
73
|
-
export const EntityFactory = mod.EntityFactory;
|
|
74
|
-
export const EntityHelper = mod.EntityHelper;
|
|
75
|
-
export const EntityIdentifier = mod.EntityIdentifier;
|
|
76
|
-
export const EntityLoader = mod.EntityLoader;
|
|
77
|
-
export const EntityManager = mod.EntityManager;
|
|
78
|
-
export const EntityManagerType = mod.EntityManagerType;
|
|
79
|
-
export const EntityMetadata = mod.EntityMetadata;
|
|
80
|
-
export const EntityRepository = mod.EntityRepository;
|
|
81
|
-
export const EntityRepositoryType = mod.EntityRepositoryType;
|
|
82
|
-
export const EntitySchema = mod.EntitySchema;
|
|
83
|
-
export const EntitySerializer = mod.EntitySerializer;
|
|
84
|
-
export const EntityTransformer = mod.EntityTransformer;
|
|
85
|
-
export const EntityValidator = mod.EntityValidator;
|
|
86
|
-
export const Enum = mod.Enum;
|
|
87
|
-
export const EnumArrayType = mod.EnumArrayType;
|
|
88
|
-
export const EnumType = mod.EnumType;
|
|
89
|
-
export const EventManager = mod.EventManager;
|
|
90
|
-
export const EventType = mod.EventType;
|
|
91
|
-
export const EventTypeMap = mod.EventTypeMap;
|
|
92
|
-
export const ExceptionConverter = mod.ExceptionConverter;
|
|
93
|
-
export const FileCacheAdapter = mod.FileCacheAdapter;
|
|
94
|
-
export const Filter = mod.Filter;
|
|
95
|
-
export const FloatType = mod.FloatType;
|
|
96
|
-
export const FlushMode = mod.FlushMode;
|
|
97
|
-
export const ForeignKeyConstraintViolationException = mod.ForeignKeyConstraintViolationException;
|
|
98
|
-
export const Formula = mod.Formula;
|
|
99
|
-
export const GeneratedCacheAdapter = mod.GeneratedCacheAdapter;
|
|
100
|
-
export const GroupOperator = mod.GroupOperator;
|
|
101
|
-
export const HiddenProps = mod.HiddenProps;
|
|
102
|
-
export const Hydrator = mod.Hydrator;
|
|
103
|
-
export const IdentityMap = mod.IdentityMap;
|
|
104
|
-
export const Index = mod.Index;
|
|
105
|
-
export const IntegerType = mod.IntegerType;
|
|
106
|
-
export const IntervalType = mod.IntervalType;
|
|
107
|
-
export const InvalidFieldNameException = mod.InvalidFieldNameException;
|
|
108
|
-
export const IsolationLevel = mod.IsolationLevel;
|
|
109
|
-
export const JSON_KEY_OPERATORS = mod.JSON_KEY_OPERATORS;
|
|
110
|
-
export const JoinType = mod.JoinType;
|
|
111
|
-
export const JsonProperty = mod.JsonProperty;
|
|
112
|
-
export const JsonType = mod.JsonType;
|
|
113
|
-
export const Kysely = mod.Kysely;
|
|
114
|
-
export const LoadStrategy = mod.LoadStrategy;
|
|
115
|
-
export const LockMode = mod.LockMode;
|
|
116
|
-
export const LockWaitTimeoutException = mod.LockWaitTimeoutException;
|
|
117
|
-
export const ManyToMany = mod.ManyToMany;
|
|
118
|
-
export const ManyToOne = mod.ManyToOne;
|
|
119
|
-
export const MediumIntType = mod.MediumIntType;
|
|
120
|
-
export const MemoryCacheAdapter = mod.MemoryCacheAdapter;
|
|
121
|
-
export const MetadataDiscovery = mod.MetadataDiscovery;
|
|
122
|
-
export const MetadataError = mod.MetadataError;
|
|
123
|
-
export const MetadataProvider = mod.MetadataProvider;
|
|
124
|
-
export const MetadataStorage = mod.MetadataStorage;
|
|
125
|
-
export const MetadataValidator = mod.MetadataValidator;
|
|
126
|
-
export const MikroORM = mod.MikroORM;
|
|
127
|
-
export const MongoNamingStrategy = mod.MongoNamingStrategy;
|
|
128
|
-
export const MsSqlNativeQueryBuilder = mod.MsSqlNativeQueryBuilder;
|
|
129
|
-
export const MySqlExceptionConverter = mod.MySqlExceptionConverter;
|
|
130
|
-
export const MySqlNativeQueryBuilder = mod.MySqlNativeQueryBuilder;
|
|
131
|
-
export const MySqlPlatform = mod.MySqlPlatform;
|
|
132
|
-
export const MySqlSchemaHelper = mod.MySqlSchemaHelper;
|
|
133
|
-
export const NativeQueryBuilder = mod.NativeQueryBuilder;
|
|
134
|
-
export const NodeState = mod.NodeState;
|
|
135
|
-
export const NonUniqueFieldNameException = mod.NonUniqueFieldNameException;
|
|
136
|
-
export const NotFoundError = mod.NotFoundError;
|
|
137
|
-
export const NotNullConstraintViolationException = mod.NotNullConstraintViolationException;
|
|
138
|
-
export const NullCacheAdapter = mod.NullCacheAdapter;
|
|
139
|
-
export const NullHighlighter = mod.NullHighlighter;
|
|
140
|
-
export const ObjectBindingPattern = mod.ObjectBindingPattern;
|
|
141
|
-
export const ObjectCriteriaNode = mod.ObjectCriteriaNode;
|
|
142
|
-
export const ObjectHydrator = mod.ObjectHydrator;
|
|
143
|
-
export const OnInit = mod.OnInit;
|
|
144
|
-
export const OnLoad = mod.OnLoad;
|
|
145
|
-
export const OneToMany = mod.OneToMany;
|
|
146
|
-
export const OneToOne = mod.OneToOne;
|
|
147
|
-
export const OptimisticLockError = mod.OptimisticLockError;
|
|
148
|
-
export const OptionalProps = mod.OptionalProps;
|
|
149
|
-
export const PlainObject = mod.PlainObject;
|
|
150
|
-
export const Platform = mod.Platform;
|
|
151
|
-
export const PopulateHint = mod.PopulateHint;
|
|
152
|
-
export const PopulatePath = mod.PopulatePath;
|
|
153
|
-
export const PostgreSqlNativeQueryBuilder = mod.PostgreSqlNativeQueryBuilder;
|
|
154
|
-
export const PrimaryKey = mod.PrimaryKey;
|
|
155
|
-
export const PrimaryKeyProp = mod.PrimaryKeyProp;
|
|
156
|
-
export const Property = mod.Property;
|
|
157
|
-
export const QueryBuilder = mod.QueryBuilder;
|
|
158
|
-
export const QueryBuilderHelper = mod.QueryBuilderHelper;
|
|
159
|
-
export const QueryFlag = mod.QueryFlag;
|
|
160
|
-
export const QueryHelper = mod.QueryHelper;
|
|
161
|
-
export const QueryOperator = mod.QueryOperator;
|
|
162
|
-
export const QueryOrder = mod.QueryOrder;
|
|
163
|
-
export const QueryOrderNumeric = mod.QueryOrderNumeric;
|
|
164
|
-
export const QueryType = mod.QueryType;
|
|
165
|
-
export const Raw = mod.Raw;
|
|
166
|
-
export const RawQueryFragment = mod.RawQueryFragment;
|
|
167
|
-
export const ReadOnlyException = mod.ReadOnlyException;
|
|
168
|
-
export const Ref = mod.Ref;
|
|
169
|
-
export const Reference = mod.Reference;
|
|
170
|
-
export const ReferenceKind = mod.ReferenceKind;
|
|
171
|
-
export const ReflectMetadataProvider = mod.ReflectMetadataProvider;
|
|
172
|
-
export const RequestContext = mod.RequestContext;
|
|
173
|
-
export const SCALAR_TYPES = mod.SCALAR_TYPES;
|
|
174
|
-
export const ScalarCriteriaNode = mod.ScalarCriteriaNode;
|
|
175
|
-
export const ScalarReference = mod.ScalarReference;
|
|
176
|
-
export const SchemaComparator = mod.SchemaComparator;
|
|
177
|
-
export const SchemaGenerator = mod.SchemaGenerator;
|
|
178
|
-
export const SchemaHelper = mod.SchemaHelper;
|
|
179
|
-
export const SerializationContext = mod.SerializationContext;
|
|
180
|
-
export const SerializedPrimaryKey = mod.SerializedPrimaryKey;
|
|
181
|
-
export const ServerException = mod.ServerException;
|
|
182
|
-
export const SimpleLogger = mod.SimpleLogger;
|
|
183
|
-
export const SmallIntType = mod.SmallIntType;
|
|
184
|
-
export const SqlEntityManager = mod.SqlEntityManager;
|
|
185
|
-
export const SqlEntityRepository = mod.SqlEntityRepository;
|
|
186
|
-
export const SqlSchemaGenerator = mod.SqlSchemaGenerator;
|
|
187
|
-
export const SqliteExceptionConverter = mod.SqliteExceptionConverter;
|
|
188
|
-
export const SqliteNativeQueryBuilder = mod.SqliteNativeQueryBuilder;
|
|
189
|
-
export const SqliteSchemaHelper = mod.SqliteSchemaHelper;
|
|
190
|
-
export const StringType = mod.StringType;
|
|
191
|
-
export const SyntaxErrorException = mod.SyntaxErrorException;
|
|
192
|
-
export const TableExistsException = mod.TableExistsException;
|
|
193
|
-
export const TableNotFoundException = mod.TableNotFoundException;
|
|
194
|
-
export const TextType = mod.TextType;
|
|
195
|
-
export const TimeType = mod.TimeType;
|
|
196
|
-
export const TinyIntType = mod.TinyIntType;
|
|
197
|
-
export const TransactionContext = mod.TransactionContext;
|
|
198
|
-
export const TransactionEventBroadcaster = mod.TransactionEventBroadcaster;
|
|
199
|
-
export const Transactional = mod.Transactional;
|
|
200
|
-
export const Type = mod.Type;
|
|
201
|
-
export const Uint8ArrayType = mod.Uint8ArrayType;
|
|
202
|
-
export const UnderscoreNamingStrategy = mod.UnderscoreNamingStrategy;
|
|
203
|
-
export const Unique = mod.Unique;
|
|
204
|
-
export const UniqueConstraintViolationException = mod.UniqueConstraintViolationException;
|
|
205
|
-
export const UnitOfWork = mod.UnitOfWork;
|
|
206
|
-
export const UnknownType = mod.UnknownType;
|
|
207
|
-
export const Utils = mod.Utils;
|
|
208
|
-
export const UuidType = mod.UuidType;
|
|
209
|
-
export const ValidationError = mod.ValidationError;
|
|
210
|
-
export const WrappedEntity = mod.WrappedEntity;
|
|
211
|
-
export const assign = mod.assign;
|
|
212
|
-
export const colors = mod.colors;
|
|
213
|
-
export const compareArrays = mod.compareArrays;
|
|
214
|
-
export const compareBooleans = mod.compareBooleans;
|
|
215
|
-
export const compareBuffers = mod.compareBuffers;
|
|
216
|
-
export const compareObjects = mod.compareObjects;
|
|
217
|
-
export const createSqlFunction = mod.createSqlFunction;
|
|
218
|
-
export const defineConfig = mod.defineConfig;
|
|
219
|
-
export const equals = mod.equals;
|
|
220
|
-
export const getOnConflictFields = mod.getOnConflictFields;
|
|
221
|
-
export const getOnConflictReturningFields = mod.getOnConflictReturningFields;
|
|
222
|
-
export const helper = mod.helper;
|
|
223
|
-
export const isRaw = mod.isRaw;
|
|
224
|
-
export const parseJsonSafe = mod.parseJsonSafe;
|
|
225
|
-
export const raw = mod.raw;
|
|
226
|
-
export const ref = mod.ref;
|
|
227
|
-
export const rel = mod.rel;
|
|
228
|
-
export const serialize = mod.serialize;
|
|
229
|
-
export const sql = mod.sql;
|
|
230
|
-
export const t = mod.t;
|
|
231
|
-
export const types = mod.types;
|
|
232
|
-
export const wrap = mod.wrap;
|