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