@mikro-orm/oracledb 7.0.2-dev.9 → 7.0.2

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