@yandjin-mikro-orm/sqlite 6.1.4-rc-sti-changes-1

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.
@@ -0,0 +1,19 @@
1
+ import { MikroORM, type Options, type IDatabaseDriver, type EntityManager, type EntityManagerType } from "@yandjin-mikro-orm/core";
2
+ import { SqliteDriver } from "./SqliteDriver";
3
+ import type { SqlEntityManager } from "@yandjin-mikro-orm/knex";
4
+ /**
5
+ * @inheritDoc
6
+ */
7
+ export declare class SqliteMikroORM<EM extends EntityManager = SqlEntityManager> extends MikroORM<SqliteDriver, EM> {
8
+ private static DRIVER;
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ static init<D extends IDatabaseDriver = SqliteDriver, EM extends EntityManager = D[typeof EntityManagerType] & EntityManager>(options?: Options<D, EM>): Promise<MikroORM<D, EM>>;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static initSync<D extends IDatabaseDriver = SqliteDriver, EM extends EntityManager = D[typeof EntityManagerType] & EntityManager>(options: Options<D, EM>): MikroORM<D, EM>;
17
+ }
18
+ export type SqliteOptions = Options<SqliteDriver>;
19
+ export declare function defineSqliteConfig(options: SqliteOptions): Options<SqliteDriver, SqlEntityManager<SqliteDriver> & EntityManager<IDatabaseDriver<import("@yandjin-mikro-orm/core").Connection>>>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defineSqliteConfig = exports.SqliteMikroORM = void 0;
4
+ const core_1 = require("@yandjin-mikro-orm/core");
5
+ const SqliteDriver_1 = require("./SqliteDriver");
6
+ /**
7
+ * @inheritDoc
8
+ */
9
+ class SqliteMikroORM extends core_1.MikroORM {
10
+ static DRIVER = SqliteDriver_1.SqliteDriver;
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ static async init(options) {
15
+ return super.init(options);
16
+ }
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static initSync(options) {
21
+ return super.initSync(options);
22
+ }
23
+ }
24
+ exports.SqliteMikroORM = SqliteMikroORM;
25
+ /* istanbul ignore next */
26
+ function defineSqliteConfig(options) {
27
+ return (0, core_1.defineConfig)({ driver: SqliteDriver_1.SqliteDriver, ...options });
28
+ }
29
+ exports.defineSqliteConfig = defineSqliteConfig;
@@ -0,0 +1,56 @@
1
+ import { type EntityProperty } from "@yandjin-mikro-orm/core";
2
+ import { AbstractSqlPlatform } from "@yandjin-mikro-orm/knex";
3
+ import { SqliteSchemaHelper } from "./SqliteSchemaHelper";
4
+ import { SqliteExceptionConverter } from "./SqliteExceptionConverter";
5
+ export declare class SqlitePlatform extends AbstractSqlPlatform {
6
+ protected readonly schemaHelper: SqliteSchemaHelper;
7
+ protected readonly exceptionConverter: SqliteExceptionConverter;
8
+ usesDefaultKeyword(): boolean;
9
+ usesReturningStatement(): boolean;
10
+ getCurrentTimestampSQL(length: number): string;
11
+ getDateTimeTypeDeclarationSQL(column: {
12
+ length: number;
13
+ }): string;
14
+ getEnumTypeDeclarationSQL(column: {
15
+ items?: unknown[];
16
+ fieldNames: string[];
17
+ length?: number;
18
+ unsigned?: boolean;
19
+ autoincrement?: boolean;
20
+ }): string;
21
+ getTinyIntTypeDeclarationSQL(column: {
22
+ length?: number;
23
+ unsigned?: boolean;
24
+ autoincrement?: boolean;
25
+ }): string;
26
+ getSmallIntTypeDeclarationSQL(column: {
27
+ length?: number;
28
+ unsigned?: boolean;
29
+ autoincrement?: boolean;
30
+ }): string;
31
+ getIntegerTypeDeclarationSQL(column: {
32
+ length?: number;
33
+ unsigned?: boolean;
34
+ autoincrement?: boolean;
35
+ }): string;
36
+ getFloatDeclarationSQL(): string;
37
+ getBooleanTypeDeclarationSQL(): string;
38
+ getVarcharTypeDeclarationSQL(column: {
39
+ length?: number;
40
+ }): string;
41
+ convertsJsonAutomatically(): boolean;
42
+ allowsComparingTuples(): boolean;
43
+ /**
44
+ * This is used to narrow the value of Date properties as they will be stored as timestamps in sqlite.
45
+ * We use this method to convert Dates to timestamps when computing the changeset, so we have the right
46
+ * data type in the payload as well as in original entity data. Without that, we would end up with diffs
47
+ * including all Date properties, as we would be comparing Date object with timestamp.
48
+ */
49
+ processDateProperty(value: unknown): string | number | Date;
50
+ quoteVersionValue(value: Date | number, prop: EntityProperty): Date | string | number;
51
+ quoteValue(value: any): string;
52
+ getIndexName(tableName: string, columns: string[], type: "index" | "unique" | "foreign" | "primary" | "sequence"): string;
53
+ getDefaultPrimaryName(tableName: string, columns: string[]): string;
54
+ supportsDownMigrations(): boolean;
55
+ getFullTextWhereClause(): string;
56
+ }
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SqlitePlatform = void 0;
4
+ // @ts-ignore
5
+ const sqlstring_sqlite_1 = require("sqlstring-sqlite");
6
+ const core_1 = require("@yandjin-mikro-orm/core");
7
+ const knex_1 = require("@yandjin-mikro-orm/knex");
8
+ const SqliteSchemaHelper_1 = require("./SqliteSchemaHelper");
9
+ const SqliteExceptionConverter_1 = require("./SqliteExceptionConverter");
10
+ class SqlitePlatform extends knex_1.AbstractSqlPlatform {
11
+ schemaHelper = new SqliteSchemaHelper_1.SqliteSchemaHelper(this);
12
+ exceptionConverter = new SqliteExceptionConverter_1.SqliteExceptionConverter();
13
+ usesDefaultKeyword() {
14
+ return false;
15
+ }
16
+ usesReturningStatement() {
17
+ return true;
18
+ }
19
+ getCurrentTimestampSQL(length) {
20
+ return super.getCurrentTimestampSQL(0);
21
+ }
22
+ getDateTimeTypeDeclarationSQL(column) {
23
+ return "datetime";
24
+ }
25
+ getEnumTypeDeclarationSQL(column) {
26
+ if (column.items?.every((item) => core_1.Utils.isString(item))) {
27
+ return "text";
28
+ }
29
+ /* istanbul ignore next */
30
+ return this.getTinyIntTypeDeclarationSQL(column);
31
+ }
32
+ getTinyIntTypeDeclarationSQL(column) {
33
+ return this.getIntegerTypeDeclarationSQL(column);
34
+ }
35
+ getSmallIntTypeDeclarationSQL(column) {
36
+ return this.getIntegerTypeDeclarationSQL(column);
37
+ }
38
+ getIntegerTypeDeclarationSQL(column) {
39
+ return "integer";
40
+ }
41
+ getFloatDeclarationSQL() {
42
+ return "real";
43
+ }
44
+ getBooleanTypeDeclarationSQL() {
45
+ return "integer";
46
+ }
47
+ getVarcharTypeDeclarationSQL(column) {
48
+ return "text";
49
+ }
50
+ convertsJsonAutomatically() {
51
+ return false;
52
+ }
53
+ allowsComparingTuples() {
54
+ return false;
55
+ }
56
+ /**
57
+ * This is used to narrow the value of Date properties as they will be stored as timestamps in sqlite.
58
+ * We use this method to convert Dates to timestamps when computing the changeset, so we have the right
59
+ * data type in the payload as well as in original entity data. Without that, we would end up with diffs
60
+ * including all Date properties, as we would be comparing Date object with timestamp.
61
+ */
62
+ processDateProperty(value) {
63
+ if (value instanceof Date) {
64
+ return +value;
65
+ }
66
+ return value;
67
+ }
68
+ quoteVersionValue(value, prop) {
69
+ if (prop.runtimeType === "Date") {
70
+ return (0, sqlstring_sqlite_1.escape)(value, true, this.timezone).replace(/^'|\.\d{3}'$/g, "");
71
+ }
72
+ return value;
73
+ }
74
+ quoteValue(value) {
75
+ /* istanbul ignore if */
76
+ if (core_1.Utils.isPlainObject(value) || value?.[core_1.JsonProperty]) {
77
+ return (0, sqlstring_sqlite_1.escape)(JSON.stringify(value), true, this.timezone);
78
+ }
79
+ if (value instanceof Date) {
80
+ return "" + +value;
81
+ }
82
+ return (0, sqlstring_sqlite_1.escape)(value, true, this.timezone);
83
+ }
84
+ getIndexName(tableName, columns, type) {
85
+ if (type === "primary") {
86
+ return this.getDefaultPrimaryName(tableName, columns);
87
+ }
88
+ return super.getIndexName(tableName, columns, type);
89
+ }
90
+ getDefaultPrimaryName(tableName, columns) {
91
+ return "primary";
92
+ }
93
+ supportsDownMigrations() {
94
+ return false;
95
+ }
96
+ getFullTextWhereClause() {
97
+ return `:column: match :query`;
98
+ }
99
+ }
100
+ exports.SqlitePlatform = SqlitePlatform;
@@ -0,0 +1,23 @@
1
+ import type { Connection, Dictionary } from "@yandjin-mikro-orm/core";
2
+ import { SchemaHelper, type AbstractSqlConnection, type IndexDef, type CheckDef } from "@yandjin-mikro-orm/knex";
3
+ export declare class SqliteSchemaHelper extends SchemaHelper {
4
+ disableForeignKeysSQL(): string;
5
+ enableForeignKeysSQL(): string;
6
+ supportsSchemaConstraints(): boolean;
7
+ getListTablesSQL(): string;
8
+ private parseTableDefinition;
9
+ getColumns(connection: AbstractSqlConnection, tableName: string, schemaName?: string): Promise<any[]>;
10
+ getEnumDefinitions(connection: AbstractSqlConnection, checks: CheckDef[], tableName: string, schemaName: string): Promise<Dictionary<string[]>>;
11
+ getPrimaryKeys(connection: AbstractSqlConnection, indexes: IndexDef[], tableName: string, schemaName?: string): Promise<string[]>;
12
+ getIndexes(connection: AbstractSqlConnection, tableName: string, schemaName?: string): Promise<IndexDef[]>;
13
+ getChecks(connection: AbstractSqlConnection, tableName: string, schemaName?: string): Promise<CheckDef[]>;
14
+ getForeignKeysSQL(tableName: string): string;
15
+ mapForeignKeys(fks: any[], tableName: string): Dictionary;
16
+ getManagementDbName(): string;
17
+ getCreateDatabaseSQL(name: string): string;
18
+ databaseExists(connection: Connection, name: string): Promise<boolean>;
19
+ /**
20
+ * Implicit indexes will be ignored when diffing
21
+ */
22
+ isImplicitIndex(name: string): boolean;
23
+ }
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SqliteSchemaHelper = void 0;
4
+ const knex_1 = require("@yandjin-mikro-orm/knex");
5
+ class SqliteSchemaHelper extends knex_1.SchemaHelper {
6
+ disableForeignKeysSQL() {
7
+ return "pragma foreign_keys = off;";
8
+ }
9
+ enableForeignKeysSQL() {
10
+ return "pragma foreign_keys = on;";
11
+ }
12
+ supportsSchemaConstraints() {
13
+ return false;
14
+ }
15
+ getListTablesSQL() {
16
+ return (`select name as table_name from sqlite_master where type = 'table' and name != 'sqlite_sequence' and name != 'geometry_columns' and name != 'spatial_ref_sys' ` +
17
+ `union all select name as table_name from sqlite_temp_master where type = 'table' order by name`);
18
+ }
19
+ parseTableDefinition(sql, cols) {
20
+ const columns = {};
21
+ // extract all columns definitions
22
+ let columnsDef = sql
23
+ .replaceAll("\n", "")
24
+ .match(new RegExp(`create table [\`"']?.*?[\`"']? \\((.*)\\)`, "i"))?.[1];
25
+ /* istanbul ignore else */
26
+ if (columnsDef) {
27
+ for (let i = cols.length - 1; i >= 0; i--) {
28
+ const col = cols[i];
29
+ const re = ` *, *[\`"']?${col.name}[\`"']? (.*)`;
30
+ const columnDef = columnsDef.match(new RegExp(re, "i"));
31
+ /* istanbul ignore else */
32
+ if (columnDef) {
33
+ columns[col.name] = { name: col.name, definition: columnDef[1] };
34
+ columnsDef = columnsDef.substring(0, columnDef.index);
35
+ }
36
+ }
37
+ }
38
+ return columns;
39
+ }
40
+ async getColumns(connection, tableName, schemaName) {
41
+ const columns = await connection.execute(`pragma table_xinfo('${tableName}')`);
42
+ const sql = `select sql from sqlite_master where type = ? and name = ?`;
43
+ const tableDefinition = await connection.execute(sql, ["table", tableName], "get");
44
+ const composite = columns.reduce((count, col) => count + (col.pk ? 1 : 0), 0) > 1;
45
+ // there can be only one, so naive check like this should be enough
46
+ const hasAutoincrement = tableDefinition.sql
47
+ .toLowerCase()
48
+ .includes("autoincrement");
49
+ const columnDefinitions = this.parseTableDefinition(tableDefinition.sql, columns);
50
+ return columns.map((col) => {
51
+ const mappedType = connection.getPlatform().getMappedType(col.type);
52
+ let generated;
53
+ if (col.hidden > 1) {
54
+ const storage = col.hidden === 2 ? "virtual" : "stored";
55
+ const re = `(generated always)? as \\((.*)\\)( ${storage})?$`;
56
+ const match = columnDefinitions[col.name].definition.match(re);
57
+ if (match) {
58
+ generated = `${match[2]} ${storage}`;
59
+ }
60
+ }
61
+ return {
62
+ name: col.name,
63
+ type: col.type,
64
+ default: col.dflt_value,
65
+ nullable: !col.notnull,
66
+ primary: !!col.pk,
67
+ mappedType,
68
+ unsigned: false,
69
+ autoincrement: !composite &&
70
+ col.pk &&
71
+ this.platform.isNumericColumn(mappedType) &&
72
+ hasAutoincrement,
73
+ generated,
74
+ };
75
+ });
76
+ }
77
+ async getEnumDefinitions(connection, checks, tableName, schemaName) {
78
+ const sql = `select sql from sqlite_master where type = ? and name = ?`;
79
+ const tableDefinition = await connection.execute(sql, ["table", tableName], "get");
80
+ const checkConstraints = [
81
+ ...(tableDefinition.sql.match(/[`["'][^`\]"']+[`\]"'] text check \(.*?\)/gi) ?? []),
82
+ ];
83
+ return checkConstraints.reduce((o, item) => {
84
+ // check constraints are defined as (note that last closing paren is missing):
85
+ // `type` text check (`type` in ('local', 'global')
86
+ const match = item.match(/[`["']([^`\]"']+)[`\]"'] text check \(.* \((.*)\)/i);
87
+ /* istanbul ignore else */
88
+ if (match) {
89
+ o[match[1]] = match[2]
90
+ .split(",")
91
+ .map((item) => item.trim().match(/^\(?'(.*)'/)[1]);
92
+ }
93
+ return o;
94
+ }, {});
95
+ }
96
+ async getPrimaryKeys(connection, indexes, tableName, schemaName) {
97
+ const sql = `pragma table_info(\`${tableName}\`)`;
98
+ const cols = await connection.execute(sql);
99
+ return cols.filter((col) => !!col.pk).map((col) => col.name);
100
+ }
101
+ async getIndexes(connection, tableName, schemaName) {
102
+ const sql = `pragma table_info(\`${tableName}\`)`;
103
+ const cols = await connection.execute(sql);
104
+ const indexes = await connection.execute(`pragma index_list(\`${tableName}\`)`);
105
+ const ret = [];
106
+ for (const col of cols.filter((c) => c.pk)) {
107
+ ret.push({
108
+ columnNames: [col.name],
109
+ keyName: "primary",
110
+ constraint: true,
111
+ unique: true,
112
+ primary: true,
113
+ });
114
+ }
115
+ for (const index of indexes.filter((index) => !this.isImplicitIndex(index.name))) {
116
+ const res = await connection.execute(`pragma index_info(\`${index.name}\`)`);
117
+ ret.push(...res.map((row) => ({
118
+ columnNames: [row.name],
119
+ keyName: index.name,
120
+ unique: !!index.unique,
121
+ constraint: !!index.unique,
122
+ primary: false,
123
+ })));
124
+ }
125
+ return this.mapIndexes(ret);
126
+ }
127
+ async getChecks(connection, tableName, schemaName) {
128
+ // Not supported at the moment.
129
+ return [];
130
+ }
131
+ getForeignKeysSQL(tableName) {
132
+ return `pragma foreign_key_list(\`${tableName}\`)`;
133
+ }
134
+ mapForeignKeys(fks, tableName) {
135
+ return fks.reduce((ret, fk) => {
136
+ ret[fk.from] = {
137
+ constraintName: this.platform.getIndexName(tableName, [fk.from], "foreign"),
138
+ columnName: fk.from,
139
+ columnNames: [fk.from],
140
+ localTableName: tableName,
141
+ referencedTableName: fk.table,
142
+ referencedColumnName: fk.to,
143
+ referencedColumnNames: [fk.to],
144
+ updateRule: fk.on_update.toLowerCase(),
145
+ deleteRule: fk.on_delete.toLowerCase(),
146
+ };
147
+ return ret;
148
+ }, {});
149
+ }
150
+ getManagementDbName() {
151
+ return "";
152
+ }
153
+ getCreateDatabaseSQL(name) {
154
+ return "";
155
+ }
156
+ async databaseExists(connection, name) {
157
+ const tables = await connection.execute(this.getListTablesSQL());
158
+ return tables.length > 0;
159
+ }
160
+ /**
161
+ * Implicit indexes will be ignored when diffing
162
+ */
163
+ isImplicitIndex(name) {
164
+ // Ignore indexes with reserved names, e.g. autoindexes
165
+ return name.startsWith("sqlite_");
166
+ }
167
+ }
168
+ exports.SqliteSchemaHelper = SqliteSchemaHelper;
package/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export * from "@yandjin-mikro-orm/knex";
2
+ export * from "./SqliteConnection";
3
+ export * from "./SqliteDriver";
4
+ export * from "./SqlitePlatform";
5
+ export * from "./SqliteSchemaHelper";
6
+ export * from "./SqliteExceptionConverter";
7
+ export { SqliteMikroORM as MikroORM, SqliteOptions as Options, defineSqliteConfig as defineConfig, } from "./SqliteMikroORM";
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
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
+ exports.defineConfig = exports.MikroORM = void 0;
18
+ __exportStar(require("@yandjin-mikro-orm/knex"), exports);
19
+ __exportStar(require("./SqliteConnection"), exports);
20
+ __exportStar(require("./SqliteDriver"), exports);
21
+ __exportStar(require("./SqlitePlatform"), exports);
22
+ __exportStar(require("./SqliteSchemaHelper"), exports);
23
+ __exportStar(require("./SqliteExceptionConverter"), exports);
24
+ var SqliteMikroORM_1 = require("./SqliteMikroORM");
25
+ Object.defineProperty(exports, "MikroORM", { enumerable: true, get: function () { return SqliteMikroORM_1.SqliteMikroORM; } });
26
+ Object.defineProperty(exports, "defineConfig", { enumerable: true, get: function () { return SqliteMikroORM_1.defineSqliteConfig; } });
package/index.mjs ADDED
@@ -0,0 +1,220 @@
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 BeforeCreate = mod.BeforeCreate;
21
+ export const BeforeDelete = mod.BeforeDelete;
22
+ export const BeforeUpdate = mod.BeforeUpdate;
23
+ export const BeforeUpsert = mod.BeforeUpsert;
24
+ export const BigIntType = mod.BigIntType;
25
+ export const BlobType = mod.BlobType;
26
+ export const BooleanType = mod.BooleanType;
27
+ export const Cascade = mod.Cascade;
28
+ export const ChangeSet = mod.ChangeSet;
29
+ export const ChangeSetComputer = mod.ChangeSetComputer;
30
+ export const ChangeSetPersister = mod.ChangeSetPersister;
31
+ export const ChangeSetType = mod.ChangeSetType;
32
+ export const Check = mod.Check;
33
+ export const CheckConstraintViolationException = mod.CheckConstraintViolationException;
34
+ export const Collection = mod.Collection;
35
+ export const CommitOrderCalculator = mod.CommitOrderCalculator;
36
+ export const Config = mod.Config;
37
+ export const Configuration = mod.Configuration;
38
+ export const ConfigurationLoader = mod.ConfigurationLoader;
39
+ export const Connection = mod.Connection;
40
+ export const ConnectionException = mod.ConnectionException;
41
+ export const ConstraintViolationException = mod.ConstraintViolationException;
42
+ export const CreateRequestContext = mod.CreateRequestContext;
43
+ export const CriteriaNode = mod.CriteriaNode;
44
+ export const CriteriaNodeFactory = mod.CriteriaNodeFactory;
45
+ export const Cursor = mod.Cursor;
46
+ export const CursorError = mod.CursorError;
47
+ export const DatabaseDriver = mod.DatabaseDriver;
48
+ export const DatabaseObjectExistsException = mod.DatabaseObjectExistsException;
49
+ export const DatabaseObjectNotFoundException = mod.DatabaseObjectNotFoundException;
50
+ export const DatabaseSchema = mod.DatabaseSchema;
51
+ export const DatabaseTable = mod.DatabaseTable;
52
+ export const DataloaderType = mod.DataloaderType;
53
+ export const DataloaderUtils = mod.DataloaderUtils;
54
+ export const DateTimeType = mod.DateTimeType;
55
+ export const DateType = mod.DateType;
56
+ export const DeadlockException = mod.DeadlockException;
57
+ export const DecimalType = mod.DecimalType;
58
+ export const DefaultLogger = mod.DefaultLogger;
59
+ export const DoubleType = mod.DoubleType;
60
+ export const DriverException = mod.DriverException;
61
+ export const EagerProps = mod.EagerProps;
62
+ export const Embeddable = mod.Embeddable;
63
+ export const Embedded = mod.Embedded;
64
+ export const EnsureRequestContext = mod.EnsureRequestContext;
65
+ export const Entity = mod.Entity;
66
+ export const EntityAssigner = mod.EntityAssigner;
67
+ export const EntityCaseNamingStrategy = mod.EntityCaseNamingStrategy;
68
+ export const EntityComparator = mod.EntityComparator;
69
+ export const EntityFactory = mod.EntityFactory;
70
+ export const EntityHelper = mod.EntityHelper;
71
+ export const EntityIdentifier = mod.EntityIdentifier;
72
+ export const EntityLoader = mod.EntityLoader;
73
+ export const EntityManager = mod.EntityManager;
74
+ export const EntityManagerType = mod.EntityManagerType;
75
+ export const EntityMetadata = mod.EntityMetadata;
76
+ export const EntityRepository = mod.EntityRepository;
77
+ export const EntityRepositoryType = mod.EntityRepositoryType;
78
+ export const EntitySchema = mod.EntitySchema;
79
+ export const EntitySerializer = mod.EntitySerializer;
80
+ export const EntityTransformer = mod.EntityTransformer;
81
+ export const EntityValidator = mod.EntityValidator;
82
+ export const Enum = mod.Enum;
83
+ export const EnumArrayType = mod.EnumArrayType;
84
+ export const EnumType = mod.EnumType;
85
+ export const EventManager = mod.EventManager;
86
+ export const EventType = mod.EventType;
87
+ export const EventTypeMap = mod.EventTypeMap;
88
+ export const ExceptionConverter = mod.ExceptionConverter;
89
+ export const FileCacheAdapter = mod.FileCacheAdapter;
90
+ export const Filter = mod.Filter;
91
+ export const FloatType = mod.FloatType;
92
+ export const FlushMode = mod.FlushMode;
93
+ export const ForeignKeyConstraintViolationException = mod.ForeignKeyConstraintViolationException;
94
+ export const Formula = mod.Formula;
95
+ export const GeneratedCacheAdapter = mod.GeneratedCacheAdapter;
96
+ export const GroupOperator = mod.GroupOperator;
97
+ export const HiddenProps = mod.HiddenProps;
98
+ export const Hydrator = mod.Hydrator;
99
+ export const IdentityMap = mod.IdentityMap;
100
+ export const Index = mod.Index;
101
+ export const IntegerType = mod.IntegerType;
102
+ export const IntervalType = mod.IntervalType;
103
+ export const InvalidFieldNameException = mod.InvalidFieldNameException;
104
+ export const IsolationLevel = mod.IsolationLevel;
105
+ export const JoinType = mod.JoinType;
106
+ export const JsonProperty = mod.JsonProperty;
107
+ export const JsonType = mod.JsonType;
108
+ export const Knex = mod.Knex;
109
+ export const LoadStrategy = mod.LoadStrategy;
110
+ export const LockMode = mod.LockMode;
111
+ export const LockWaitTimeoutException = mod.LockWaitTimeoutException;
112
+ export const ManyToMany = mod.ManyToMany;
113
+ export const ManyToOne = mod.ManyToOne;
114
+ export const MediumIntType = mod.MediumIntType;
115
+ export const MemoryCacheAdapter = mod.MemoryCacheAdapter;
116
+ export const MetadataDiscovery = mod.MetadataDiscovery;
117
+ export const MetadataError = mod.MetadataError;
118
+ export const MetadataProvider = mod.MetadataProvider;
119
+ export const MetadataStorage = mod.MetadataStorage;
120
+ export const MetadataValidator = mod.MetadataValidator;
121
+ export const MikroORM = mod.MikroORM;
122
+ export const MongoNamingStrategy = mod.MongoNamingStrategy;
123
+ export const MonkeyPatchable = mod.MonkeyPatchable;
124
+ export const NodeState = mod.NodeState;
125
+ export const NonUniqueFieldNameException = mod.NonUniqueFieldNameException;
126
+ export const NotFoundError = mod.NotFoundError;
127
+ export const NotNullConstraintViolationException = mod.NotNullConstraintViolationException;
128
+ export const NullCacheAdapter = mod.NullCacheAdapter;
129
+ export const NullHighlighter = mod.NullHighlighter;
130
+ export const ObjectBindingPattern = mod.ObjectBindingPattern;
131
+ export const ObjectCriteriaNode = mod.ObjectCriteriaNode;
132
+ export const ObjectHydrator = mod.ObjectHydrator;
133
+ export const OnInit = mod.OnInit;
134
+ export const OnLoad = mod.OnLoad;
135
+ export const OneToMany = mod.OneToMany;
136
+ export const OneToOne = mod.OneToOne;
137
+ export const OptimisticLockError = mod.OptimisticLockError;
138
+ export const OptionalProps = mod.OptionalProps;
139
+ export const PlainObject = mod.PlainObject;
140
+ export const Platform = mod.Platform;
141
+ export const PopulateHint = mod.PopulateHint;
142
+ export const PrimaryKey = mod.PrimaryKey;
143
+ export const PrimaryKeyProp = mod.PrimaryKeyProp;
144
+ export const Property = mod.Property;
145
+ export const QueryBuilder = mod.QueryBuilder;
146
+ export const QueryBuilderHelper = mod.QueryBuilderHelper;
147
+ export const QueryFlag = mod.QueryFlag;
148
+ export const QueryHelper = mod.QueryHelper;
149
+ export const QueryOperator = mod.QueryOperator;
150
+ export const QueryOrder = mod.QueryOrder;
151
+ export const QueryOrderNumeric = mod.QueryOrderNumeric;
152
+ export const QueryType = mod.QueryType;
153
+ export const RawQueryFragment = mod.RawQueryFragment;
154
+ export const ReadOnlyException = mod.ReadOnlyException;
155
+ export const Ref = mod.Ref;
156
+ export const Reference = mod.Reference;
157
+ export const ReferenceKind = mod.ReferenceKind;
158
+ export const ReflectMetadataProvider = mod.ReflectMetadataProvider;
159
+ export const RequestContext = mod.RequestContext;
160
+ export const SCALAR_TYPES = mod.SCALAR_TYPES;
161
+ export const ScalarCriteriaNode = mod.ScalarCriteriaNode;
162
+ export const ScalarReference = mod.ScalarReference;
163
+ export const SchemaComparator = mod.SchemaComparator;
164
+ export const SchemaGenerator = mod.SchemaGenerator;
165
+ export const SchemaHelper = mod.SchemaHelper;
166
+ export const SerializationContext = mod.SerializationContext;
167
+ export const SerializedPrimaryKey = mod.SerializedPrimaryKey;
168
+ export const ServerException = mod.ServerException;
169
+ export const SimpleLogger = mod.SimpleLogger;
170
+ export const SmallIntType = mod.SmallIntType;
171
+ export const SqlEntityManager = mod.SqlEntityManager;
172
+ export const SqlEntityRepository = mod.SqlEntityRepository;
173
+ export const SqlSchemaGenerator = mod.SqlSchemaGenerator;
174
+ export const SqliteConnection = mod.SqliteConnection;
175
+ export const SqliteDriver = mod.SqliteDriver;
176
+ export const SqliteExceptionConverter = mod.SqliteExceptionConverter;
177
+ export const SqlitePlatform = mod.SqlitePlatform;
178
+ export const SqliteSchemaHelper = mod.SqliteSchemaHelper;
179
+ export const StringType = mod.StringType;
180
+ export const SyntaxErrorException = mod.SyntaxErrorException;
181
+ export const TableExistsException = mod.TableExistsException;
182
+ export const TableNotFoundException = mod.TableNotFoundException;
183
+ export const TextType = mod.TextType;
184
+ export const TimeType = mod.TimeType;
185
+ export const TinyIntType = mod.TinyIntType;
186
+ export const TransactionContext = mod.TransactionContext;
187
+ export const TransactionEventBroadcaster = mod.TransactionEventBroadcaster;
188
+ export const Type = mod.Type;
189
+ export const Uint8ArrayType = mod.Uint8ArrayType;
190
+ export const UnderscoreNamingStrategy = mod.UnderscoreNamingStrategy;
191
+ export const Unique = mod.Unique;
192
+ export const UniqueConstraintViolationException = mod.UniqueConstraintViolationException;
193
+ export const UnitOfWork = mod.UnitOfWork;
194
+ export const UnknownType = mod.UnknownType;
195
+ export const Utils = mod.Utils;
196
+ export const UuidType = mod.UuidType;
197
+ export const ValidationError = mod.ValidationError;
198
+ export const WrappedEntity = mod.WrappedEntity;
199
+ export const assign = mod.assign;
200
+ export const colors = mod.colors;
201
+ export const compareArrays = mod.compareArrays;
202
+ export const compareBooleans = mod.compareBooleans;
203
+ export const compareBuffers = mod.compareBuffers;
204
+ export const compareObjects = mod.compareObjects;
205
+ export const createSqlFunction = mod.createSqlFunction;
206
+ export const defineConfig = mod.defineConfig;
207
+ export const equals = mod.equals;
208
+ export const getOnConflictFields = mod.getOnConflictFields;
209
+ export const getOnConflictReturningFields = mod.getOnConflictReturningFields;
210
+ export const helper = mod.helper;
211
+ export const knex = mod.knex;
212
+ export const parseJsonSafe = mod.parseJsonSafe;
213
+ export const raw = mod.raw;
214
+ export const ref = mod.ref;
215
+ export const rel = mod.rel;
216
+ export const serialize = mod.serialize;
217
+ export const sql = mod.sql;
218
+ export const t = mod.t;
219
+ export const types = mod.types;
220
+ export const wrap = mod.wrap;