@mikro-orm/sql 7.0.4 → 7.0.5-dev.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.
- package/AbstractSqlConnection.d.ts +58 -94
- package/AbstractSqlConnection.js +238 -235
- package/AbstractSqlDriver.d.ts +155 -410
- package/AbstractSqlDriver.js +1941 -2064
- package/AbstractSqlPlatform.d.ts +73 -83
- package/AbstractSqlPlatform.js +158 -162
- package/PivotCollectionPersister.d.ts +15 -33
- package/PivotCollectionPersister.js +160 -158
- package/README.md +1 -1
- package/SqlEntityManager.d.ts +22 -67
- package/SqlEntityManager.js +38 -54
- package/SqlEntityRepository.d.ts +14 -14
- package/SqlEntityRepository.js +23 -23
- package/dialects/mssql/MsSqlNativeQueryBuilder.d.ts +12 -12
- package/dialects/mssql/MsSqlNativeQueryBuilder.js +194 -192
- package/dialects/mysql/BaseMySqlPlatform.d.ts +45 -64
- package/dialects/mysql/BaseMySqlPlatform.js +131 -134
- package/dialects/mysql/MySqlExceptionConverter.d.ts +6 -6
- package/dialects/mysql/MySqlExceptionConverter.js +77 -91
- package/dialects/mysql/MySqlNativeQueryBuilder.d.ts +3 -3
- package/dialects/mysql/MySqlNativeQueryBuilder.js +69 -66
- package/dialects/mysql/MySqlSchemaHelper.d.ts +39 -39
- package/dialects/mysql/MySqlSchemaHelper.js +319 -327
- package/dialects/oracledb/OracleDialect.d.ts +52 -81
- package/dialects/oracledb/OracleDialect.js +149 -155
- package/dialects/oracledb/OracleNativeQueryBuilder.d.ts +12 -12
- package/dialects/oracledb/OracleNativeQueryBuilder.js +236 -232
- package/dialects/postgresql/BasePostgreSqlPlatform.d.ts +106 -109
- package/dialects/postgresql/BasePostgreSqlPlatform.js +353 -354
- package/dialects/postgresql/FullTextType.d.ts +6 -10
- package/dialects/postgresql/FullTextType.js +51 -51
- package/dialects/postgresql/PostgreSqlExceptionConverter.d.ts +5 -5
- package/dialects/postgresql/PostgreSqlExceptionConverter.js +43 -55
- package/dialects/postgresql/PostgreSqlNativeQueryBuilder.d.ts +1 -1
- package/dialects/postgresql/PostgreSqlNativeQueryBuilder.js +4 -4
- package/dialects/postgresql/PostgreSqlSchemaHelper.d.ts +82 -102
- package/dialects/postgresql/PostgreSqlSchemaHelper.js +705 -733
- package/dialects/sqlite/BaseSqliteConnection.d.ts +5 -3
- package/dialects/sqlite/BaseSqliteConnection.js +19 -21
- package/dialects/sqlite/NodeSqliteDialect.d.ts +1 -1
- package/dialects/sqlite/NodeSqliteDialect.js +23 -23
- package/dialects/sqlite/SqliteDriver.d.ts +1 -1
- package/dialects/sqlite/SqliteDriver.js +3 -3
- package/dialects/sqlite/SqliteExceptionConverter.d.ts +6 -6
- package/dialects/sqlite/SqliteExceptionConverter.js +51 -67
- package/dialects/sqlite/SqliteNativeQueryBuilder.d.ts +2 -2
- package/dialects/sqlite/SqliteNativeQueryBuilder.js +7 -7
- package/dialects/sqlite/SqlitePlatform.d.ts +72 -63
- package/dialects/sqlite/SqlitePlatform.js +139 -139
- package/dialects/sqlite/SqliteSchemaHelper.d.ts +60 -70
- package/dialects/sqlite/SqliteSchemaHelper.js +520 -533
- package/package.json +2 -2
- package/plugin/index.d.ts +35 -42
- package/plugin/index.js +36 -43
- package/plugin/transformer.d.ts +94 -117
- package/plugin/transformer.js +881 -890
- package/query/ArrayCriteriaNode.d.ts +4 -4
- package/query/ArrayCriteriaNode.js +18 -18
- package/query/CriteriaNode.d.ts +25 -35
- package/query/CriteriaNode.js +123 -133
- package/query/CriteriaNodeFactory.d.ts +6 -49
- package/query/CriteriaNodeFactory.js +94 -97
- package/query/NativeQueryBuilder.d.ts +118 -118
- package/query/NativeQueryBuilder.js +480 -484
- package/query/ObjectCriteriaNode.d.ts +12 -12
- package/query/ObjectCriteriaNode.js +282 -298
- package/query/QueryBuilder.d.ts +905 -1557
- package/query/QueryBuilder.js +2192 -2322
- package/query/QueryBuilderHelper.d.ts +72 -153
- package/query/QueryBuilderHelper.js +1028 -1079
- package/query/ScalarCriteriaNode.d.ts +3 -3
- package/query/ScalarCriteriaNode.js +46 -53
- package/query/enums.d.ts +14 -14
- package/query/enums.js +14 -14
- package/query/raw.d.ts +6 -16
- package/query/raw.js +10 -10
- package/schema/DatabaseSchema.d.ts +50 -73
- package/schema/DatabaseSchema.js +307 -331
- package/schema/DatabaseTable.d.ts +73 -96
- package/schema/DatabaseTable.js +927 -1012
- package/schema/SchemaComparator.d.ts +66 -70
- package/schema/SchemaComparator.js +740 -766
- package/schema/SchemaHelper.d.ts +95 -109
- package/schema/SchemaHelper.js +659 -675
- package/schema/SqlSchemaGenerator.d.ts +58 -78
- package/schema/SqlSchemaGenerator.js +501 -535
- package/typings.d.ts +266 -380
|
@@ -1,116 +1,113 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type EntityProperty,
|
|
3
|
-
type IsolationLevel,
|
|
4
|
-
RawQueryFragment,
|
|
5
|
-
type SimpleColumnMeta,
|
|
6
|
-
Type,
|
|
7
|
-
} from '@mikro-orm/core';
|
|
1
|
+
import { type EntityProperty, type IsolationLevel, RawQueryFragment, type SimpleColumnMeta, Type } from '@mikro-orm/core';
|
|
8
2
|
import { AbstractSqlPlatform } from '../../AbstractSqlPlatform.js';
|
|
9
3
|
import type { IndexDef } from '../../typings.js';
|
|
10
4
|
import { PostgreSqlNativeQueryBuilder } from './PostgreSqlNativeQueryBuilder.js';
|
|
11
5
|
import { PostgreSqlSchemaHelper } from './PostgreSqlSchemaHelper.js';
|
|
12
6
|
import { PostgreSqlExceptionConverter } from './PostgreSqlExceptionConverter.js';
|
|
13
7
|
export declare class BasePostgreSqlPlatform extends AbstractSqlPlatform {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
8
|
+
#private;
|
|
9
|
+
protected readonly schemaHelper: PostgreSqlSchemaHelper;
|
|
10
|
+
protected readonly exceptionConverter: PostgreSqlExceptionConverter;
|
|
11
|
+
createNativeQueryBuilder(): PostgreSqlNativeQueryBuilder;
|
|
12
|
+
usesReturningStatement(): boolean;
|
|
13
|
+
usesCascadeStatement(): boolean;
|
|
14
|
+
supportsNativeEnums(): boolean;
|
|
15
|
+
usesEnumCheckConstraints(): boolean;
|
|
16
|
+
getEnumArrayCheckConstraintExpression(column: string, items: string[]): string;
|
|
17
|
+
supportsMaterializedViews(): boolean;
|
|
18
|
+
supportsCustomPrimaryKeyNames(): boolean;
|
|
19
|
+
getCurrentTimestampSQL(length: number): string;
|
|
20
|
+
getDateTimeTypeDeclarationSQL(column: {
|
|
21
|
+
length?: number;
|
|
22
|
+
}): string;
|
|
23
|
+
getDefaultDateTimeLength(): number;
|
|
24
|
+
getTimeTypeDeclarationSQL(): string;
|
|
25
|
+
getIntegerTypeDeclarationSQL(column: {
|
|
26
|
+
length?: number;
|
|
27
|
+
autoincrement?: boolean;
|
|
28
|
+
generated?: string;
|
|
29
|
+
}): string;
|
|
30
|
+
getBigIntTypeDeclarationSQL(column: {
|
|
31
|
+
autoincrement?: boolean;
|
|
32
|
+
}): string;
|
|
33
|
+
getTinyIntTypeDeclarationSQL(column: {
|
|
34
|
+
length?: number;
|
|
35
|
+
unsigned?: boolean;
|
|
36
|
+
autoincrement?: boolean;
|
|
37
|
+
}): string;
|
|
38
|
+
getUuidTypeDeclarationSQL(column: {
|
|
39
|
+
length?: number;
|
|
40
|
+
}): string;
|
|
41
|
+
getFullTextWhereClause(prop: EntityProperty): string;
|
|
42
|
+
supportsCreatingFullTextIndex(): boolean;
|
|
43
|
+
getFullTextIndexExpression(indexName: string, schemaName: string | undefined, tableName: string, columns: SimpleColumnMeta[]): string;
|
|
44
|
+
normalizeColumnType(type: string, options: {
|
|
45
|
+
length?: number;
|
|
46
|
+
precision?: number;
|
|
47
|
+
scale?: number;
|
|
48
|
+
autoincrement?: boolean;
|
|
49
|
+
}): string;
|
|
50
|
+
getMappedType(type: string): Type<unknown>;
|
|
51
|
+
getRegExpOperator(val?: unknown, flags?: string): string;
|
|
52
|
+
getRegExpValue(val: RegExp): {
|
|
53
|
+
$re: string;
|
|
54
|
+
$flags?: string;
|
|
55
|
+
};
|
|
56
|
+
isBigIntProperty(prop: EntityProperty): boolean;
|
|
57
|
+
getArrayDeclarationSQL(): string;
|
|
58
|
+
getFloatDeclarationSQL(): string;
|
|
59
|
+
getDoubleDeclarationSQL(): string;
|
|
60
|
+
getEnumTypeDeclarationSQL(column: {
|
|
61
|
+
fieldNames: string[];
|
|
62
|
+
items?: unknown[];
|
|
63
|
+
nativeEnumName?: string;
|
|
64
|
+
}): string;
|
|
65
|
+
supportsMultipleStatements(): boolean;
|
|
66
|
+
getBeginTransactionSQL(options?: {
|
|
67
|
+
isolationLevel?: IsolationLevel;
|
|
68
|
+
readOnly?: boolean;
|
|
69
|
+
}): string[];
|
|
70
|
+
marshallArray(values: string[]): string;
|
|
71
|
+
unmarshallArray(value: string): string[];
|
|
72
|
+
getVarcharTypeDeclarationSQL(column: {
|
|
73
|
+
length?: number;
|
|
74
|
+
}): string;
|
|
75
|
+
getCharTypeDeclarationSQL(column: {
|
|
76
|
+
length?: number;
|
|
77
|
+
}): string;
|
|
78
|
+
getIntervalTypeDeclarationSQL(column: {
|
|
79
|
+
length?: number;
|
|
80
|
+
}): string;
|
|
81
|
+
getBlobDeclarationSQL(): string;
|
|
82
|
+
getJsonDeclarationSQL(): string;
|
|
83
|
+
getSearchJsonPropertyKey(path: string[], type: string | undefined | Type, aliased: boolean, value?: unknown): string | RawQueryFragment;
|
|
84
|
+
getJsonIndexDefinition(index: IndexDef): string[];
|
|
85
|
+
quoteIdentifier(id: string | {
|
|
86
|
+
toString: () => string;
|
|
87
|
+
}, quote?: string): string;
|
|
88
|
+
private pad;
|
|
89
|
+
/** @internal */
|
|
90
|
+
formatDate(date: Date): string;
|
|
91
|
+
indexForeignKeys(): boolean;
|
|
92
|
+
getDefaultMappedType(type: string): Type<unknown>;
|
|
93
|
+
supportsSchemas(): boolean;
|
|
94
|
+
getDefaultSchemaName(): string | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Returns the default name of index for the given columns
|
|
97
|
+
* cannot go past 63 character length for identifiers in MySQL
|
|
98
|
+
*/
|
|
99
|
+
getIndexName(tableName: string, columns: string[], type: 'index' | 'unique' | 'foreign' | 'primary' | 'sequence'): string;
|
|
100
|
+
getDefaultPrimaryName(tableName: string, columns: string[]): string;
|
|
101
|
+
/**
|
|
102
|
+
* @inheritDoc
|
|
103
|
+
*/
|
|
104
|
+
castColumn(prop?: {
|
|
105
|
+
columnTypes?: string[];
|
|
106
|
+
}): string;
|
|
107
|
+
getJsonArrayFromSQL(column: string, alias: string, _properties: {
|
|
108
|
+
name: string;
|
|
109
|
+
type: string;
|
|
110
|
+
}[]): string;
|
|
111
|
+
getJsonArrayElementPropertySQL(alias: string, property: string, type: string): string;
|
|
112
|
+
getDefaultClientUrl(): string;
|
|
116
113
|
}
|