@mikro-orm/oracledb 7.0.8-dev.7 → 7.0.8
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/OracleConnection.d.ts +24 -8
- package/OracleConnection.js +163 -162
- package/OracleDriver.d.ts +37 -7
- package/OracleDriver.js +68 -67
- package/OracleExceptionConverter.d.ts +4 -4
- package/OracleExceptionConverter.js +156 -140
- package/OracleMikroORM.d.ts +50 -12
- package/OracleMikroORM.js +14 -14
- package/OraclePlatform.d.ts +113 -120
- package/OraclePlatform.js +299 -284
- package/OracleQueryBuilder.d.ts +25 -7
- package/OracleQueryBuilder.js +82 -75
- package/OracleSchemaGenerator.d.ts +45 -37
- package/OracleSchemaGenerator.js +390 -372
- package/OracleSchemaHelper.d.ts +89 -43
- package/OracleSchemaHelper.js +523 -514
- package/README.md +1 -1
- package/package.json +4 -4
package/OraclePlatform.d.ts
CHANGED
|
@@ -1,126 +1,119 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
AbstractSqlPlatform,
|
|
3
|
+
type Dictionary,
|
|
4
|
+
type EntityKey,
|
|
5
|
+
type EntityManager,
|
|
6
|
+
type EntityValue,
|
|
7
|
+
type FilterQuery,
|
|
8
|
+
type IDatabaseDriver,
|
|
9
|
+
type IsolationLevel,
|
|
10
|
+
type MikroORM,
|
|
11
|
+
OracleNativeQueryBuilder,
|
|
12
|
+
Type,
|
|
13
|
+
} from '@mikro-orm/sql';
|
|
2
14
|
import { OracleSchemaHelper } from './OracleSchemaHelper.js';
|
|
3
15
|
import { OracleExceptionConverter } from './OracleExceptionConverter.js';
|
|
4
16
|
import { OracleSchemaGenerator } from './OracleSchemaGenerator.js';
|
|
5
17
|
/** Platform implementation for Oracle Database. */
|
|
6
18
|
export declare class OraclePlatform extends AbstractSqlPlatform {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
processJsonCondition<T extends object>(o: FilterQuery<T>, value: EntityValue<T>, path: EntityKey<T>[], alias: boolean): FilterQuery<T>;
|
|
108
|
-
getJsonArrayFromSQL(column: string, alias: string, properties: {
|
|
109
|
-
name: string;
|
|
110
|
-
type: string;
|
|
111
|
-
}[]): string;
|
|
112
|
-
usesEnumCheckConstraints(): boolean;
|
|
113
|
-
supportsMultipleCascadePaths(): boolean;
|
|
114
|
-
/** @inheritDoc */
|
|
115
|
-
supportsOnUpdate(): boolean;
|
|
116
|
-
supportsMultipleStatements(): boolean;
|
|
117
|
-
quoteIdentifier(id: string): string;
|
|
118
|
-
escape(value: any): string;
|
|
119
|
-
getSchemaGenerator(driver: IDatabaseDriver, em?: EntityManager): OracleSchemaGenerator;
|
|
120
|
-
allowsComparingTuples(): boolean;
|
|
121
|
-
getDefaultClientUrl(): string;
|
|
122
|
-
/** @internal */
|
|
123
|
-
mapToBindType(type: string): unknown;
|
|
124
|
-
mapToOracleType(type: string): unknown;
|
|
125
|
-
createOutBindings(map: Dictionary<string>): Dictionary;
|
|
19
|
+
#private;
|
|
20
|
+
protected readonly schemaHelper: OracleSchemaHelper;
|
|
21
|
+
protected readonly exceptionConverter: OracleExceptionConverter;
|
|
22
|
+
/** @inheritDoc */
|
|
23
|
+
lookupExtensions(orm: MikroORM): void;
|
|
24
|
+
getRollbackToSavepointSQL(savepointName: string): string;
|
|
25
|
+
getSavepointSQL(savepointName: string): string;
|
|
26
|
+
getBeginTransactionSQL(options?: { isolationLevel?: IsolationLevel; readOnly?: boolean }): string[];
|
|
27
|
+
usesAsKeyword(): boolean;
|
|
28
|
+
compareUuids(): string;
|
|
29
|
+
convertUuidToJSValue(value: Buffer): string;
|
|
30
|
+
convertUuidToDatabaseValue(value: string): Buffer;
|
|
31
|
+
/** @internal */
|
|
32
|
+
createNativeQueryBuilder(): OracleNativeQueryBuilder;
|
|
33
|
+
usesOutputStatement(): boolean;
|
|
34
|
+
usesReturningStatement(): boolean;
|
|
35
|
+
convertsJsonAutomatically(): boolean;
|
|
36
|
+
indexForeignKeys(): boolean;
|
|
37
|
+
supportsSchemas(): boolean;
|
|
38
|
+
getCurrentTimestampSQL(length: number): string;
|
|
39
|
+
getDateTimeTypeDeclarationSQL(column: { length?: number }): string;
|
|
40
|
+
getDefaultDateTimeLength(): number;
|
|
41
|
+
getFloatDeclarationSQL(): string;
|
|
42
|
+
getDoubleDeclarationSQL(): string;
|
|
43
|
+
getDecimalTypeDeclarationSQL(column: { precision?: number; scale?: number }): string;
|
|
44
|
+
getBooleanTypeDeclarationSQL(): string;
|
|
45
|
+
getRegExpOperator(): string;
|
|
46
|
+
mapRegExpCondition(
|
|
47
|
+
mappedKey: string,
|
|
48
|
+
value: {
|
|
49
|
+
$re: string;
|
|
50
|
+
$flags?: string;
|
|
51
|
+
},
|
|
52
|
+
): {
|
|
53
|
+
sql: string;
|
|
54
|
+
params: unknown[];
|
|
55
|
+
};
|
|
56
|
+
getBlobDeclarationSQL(): string;
|
|
57
|
+
getJsonDeclarationSQL(): string;
|
|
58
|
+
getDefaultSchemaName(): string | undefined;
|
|
59
|
+
getVarcharTypeDeclarationSQL(column: { length?: number }): string;
|
|
60
|
+
getDateTypeDeclarationSQL(length?: number): string;
|
|
61
|
+
getTimeTypeDeclarationSQL(length?: number): string;
|
|
62
|
+
getIntegerTypeDeclarationSQL(column: { length?: number; unsigned?: boolean; autoincrement?: boolean }): string;
|
|
63
|
+
/**
|
|
64
|
+
* @inheritDoc
|
|
65
|
+
*/
|
|
66
|
+
getBigIntTypeDeclarationSQL(column: { length?: number; unsigned?: boolean; autoincrement?: boolean }): string;
|
|
67
|
+
getMediumIntTypeDeclarationSQL(column: { length?: number; unsigned?: boolean; autoincrement?: boolean }): string;
|
|
68
|
+
getTinyIntTypeDeclarationSQL(column: { length?: number; unsigned?: boolean; autoincrement?: boolean }): string;
|
|
69
|
+
getSmallIntTypeDeclarationSQL(column: { length?: number; unsigned?: boolean; autoincrement?: boolean }): string;
|
|
70
|
+
getArrayDeclarationSQL(): string;
|
|
71
|
+
getEnumTypeDeclarationSQL(column: {
|
|
72
|
+
items?: unknown[];
|
|
73
|
+
fieldNames: string[];
|
|
74
|
+
length?: number;
|
|
75
|
+
unsigned?: boolean;
|
|
76
|
+
autoincrement?: boolean;
|
|
77
|
+
}): string;
|
|
78
|
+
getTextTypeDeclarationSQL(_column: { length?: number }): string;
|
|
79
|
+
normalizeColumnType(
|
|
80
|
+
type: string,
|
|
81
|
+
options: {
|
|
82
|
+
length?: number;
|
|
83
|
+
precision?: number;
|
|
84
|
+
scale?: number;
|
|
85
|
+
},
|
|
86
|
+
): string;
|
|
87
|
+
getDefaultMappedType(type: string): Type<unknown>;
|
|
88
|
+
getUuidTypeDeclarationSQL(column: { length?: number }): string;
|
|
89
|
+
usesCascadeStatement(): boolean;
|
|
90
|
+
getSearchJsonPropertyKey(path: string[], type: string, aliased: boolean, value?: unknown): string;
|
|
91
|
+
processJsonCondition<T extends object>(
|
|
92
|
+
o: FilterQuery<T>,
|
|
93
|
+
value: EntityValue<T>,
|
|
94
|
+
path: EntityKey<T>[],
|
|
95
|
+
alias: boolean,
|
|
96
|
+
): FilterQuery<T>;
|
|
97
|
+
getJsonArrayFromSQL(
|
|
98
|
+
column: string,
|
|
99
|
+
alias: string,
|
|
100
|
+
properties: {
|
|
101
|
+
name: string;
|
|
102
|
+
type: string;
|
|
103
|
+
}[],
|
|
104
|
+
): string;
|
|
105
|
+
usesEnumCheckConstraints(): boolean;
|
|
106
|
+
supportsMultipleCascadePaths(): boolean;
|
|
107
|
+
/** @inheritDoc */
|
|
108
|
+
supportsOnUpdate(): boolean;
|
|
109
|
+
supportsMultipleStatements(): boolean;
|
|
110
|
+
quoteIdentifier(id: string): string;
|
|
111
|
+
escape(value: any): string;
|
|
112
|
+
getSchemaGenerator(driver: IDatabaseDriver, em?: EntityManager): OracleSchemaGenerator;
|
|
113
|
+
allowsComparingTuples(): boolean;
|
|
114
|
+
getDefaultClientUrl(): string;
|
|
115
|
+
/** @internal */
|
|
116
|
+
mapToBindType(type: string): unknown;
|
|
117
|
+
mapToOracleType(type: string): unknown;
|
|
118
|
+
createOutBindings(map: Dictionary<string>): Dictionary;
|
|
126
119
|
}
|