@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/OracleSchemaHelper.d.ts
CHANGED
|
@@ -1,46 +1,92 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
type AbstractSqlConnection,
|
|
3
|
+
type CheckDef,
|
|
4
|
+
type Column,
|
|
5
|
+
type DatabaseSchema,
|
|
6
|
+
type DatabaseTable,
|
|
7
|
+
type Dictionary,
|
|
8
|
+
type ForeignKey,
|
|
9
|
+
type IndexDef,
|
|
10
|
+
SchemaHelper,
|
|
11
|
+
type Table,
|
|
12
|
+
type TableDifference,
|
|
13
|
+
type Transaction,
|
|
14
|
+
type Type,
|
|
15
|
+
} from '@mikro-orm/sql';
|
|
2
16
|
/** Schema introspection helper for Oracle Database. */
|
|
3
17
|
export declare class OracleSchemaHelper extends SchemaHelper {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
18
|
+
static readonly DEFAULT_VALUES: Record<string, string[]>;
|
|
19
|
+
getDatabaseExistsSQL(name: string): string;
|
|
20
|
+
getAllTables(connection: AbstractSqlConnection, schemas?: string[], ctx?: Transaction): Promise<Table[]>;
|
|
21
|
+
getListTablesSQL(schemaName?: string): string;
|
|
22
|
+
getListViewsSQL(): string;
|
|
23
|
+
loadViews(
|
|
24
|
+
schema: DatabaseSchema,
|
|
25
|
+
connection: AbstractSqlConnection,
|
|
26
|
+
schemaName?: string,
|
|
27
|
+
ctx?: Transaction,
|
|
28
|
+
): Promise<void>;
|
|
29
|
+
getNamespaces(connection: AbstractSqlConnection, ctx?: Transaction): Promise<string[]>;
|
|
30
|
+
private getIgnoredNamespacesConditionSQL;
|
|
31
|
+
getDefaultEmptyString(): string;
|
|
32
|
+
normalizeDefaultValue(
|
|
33
|
+
defaultValue: string,
|
|
34
|
+
length: number,
|
|
35
|
+
defaultValues?: Dictionary<string[]>,
|
|
36
|
+
stripQuotes?: boolean,
|
|
37
|
+
): string | number;
|
|
38
|
+
getAllColumns(
|
|
39
|
+
connection: AbstractSqlConnection,
|
|
40
|
+
tablesBySchemas: Map<string | undefined, Table[]>,
|
|
41
|
+
ctx?: Transaction,
|
|
42
|
+
): Promise<Dictionary<Column[]>>;
|
|
43
|
+
getAllIndexes(
|
|
44
|
+
connection: AbstractSqlConnection,
|
|
45
|
+
tablesBySchemas: Map<string | undefined, Table[]>,
|
|
46
|
+
ctx?: Transaction,
|
|
47
|
+
): Promise<Dictionary<IndexDef[]>>;
|
|
48
|
+
mapForeignKeys(fks: any[], tableName: string, schemaName?: string): Dictionary;
|
|
49
|
+
createForeignKey(table: DatabaseTable, foreignKey: ForeignKey, alterTable?: boolean, inline?: boolean): string;
|
|
50
|
+
getAllForeignKeys(
|
|
51
|
+
connection: AbstractSqlConnection,
|
|
52
|
+
tablesBySchemas: Map<string | undefined, Table[]>,
|
|
53
|
+
ctx?: Transaction,
|
|
54
|
+
): Promise<Dictionary<Dictionary<ForeignKey>>>;
|
|
55
|
+
private getEnumDefinitions;
|
|
56
|
+
private getChecksSQL;
|
|
57
|
+
getAllChecks(
|
|
58
|
+
connection: AbstractSqlConnection,
|
|
59
|
+
tablesBySchemas: Map<string | undefined, Table[]>,
|
|
60
|
+
ctx?: Transaction,
|
|
61
|
+
): Promise<Dictionary<CheckDef[]>>;
|
|
62
|
+
loadInformationSchema(
|
|
63
|
+
schema: DatabaseSchema,
|
|
64
|
+
connection: AbstractSqlConnection,
|
|
65
|
+
tables: Table[],
|
|
66
|
+
schemas?: string[],
|
|
67
|
+
ctx?: Transaction,
|
|
68
|
+
): Promise<void>;
|
|
69
|
+
getPreAlterTable(tableDiff: TableDifference, safe: boolean): string[];
|
|
70
|
+
getPostAlterTable(tableDiff: TableDifference, safe: boolean): string[];
|
|
71
|
+
getCreateNamespaceSQL(name: string): string;
|
|
72
|
+
getDropNamespaceSQL(name: string): string;
|
|
73
|
+
getDropIndexSQL(tableName: string, index: IndexDef): string;
|
|
74
|
+
dropIndex(table: string, index: IndexDef, oldIndexName?: string): string;
|
|
75
|
+
getManagementDbName(): string;
|
|
76
|
+
getDatabaseNotExistsError(dbName: string): string;
|
|
77
|
+
getCreateDatabaseSQL(name: string): string;
|
|
78
|
+
getDropDatabaseSQL(name: string): string;
|
|
79
|
+
getDropColumnsSQL(tableName: string, columns: Column[], schemaName?: string): string;
|
|
80
|
+
getRenameColumnSQL(tableName: string, oldColumnName: string, to: Column, schemaName?: string): string;
|
|
81
|
+
createTableColumn(column: Column, table: DatabaseTable, changedProperties?: Set<string>): string | undefined;
|
|
82
|
+
alterTableColumn(column: Column, table: DatabaseTable, changedProperties: Set<string>): string[];
|
|
83
|
+
getCreateIndexSQL(tableName: string, index: IndexDef, partialExpression?: boolean): string;
|
|
84
|
+
createIndex(index: IndexDef, table: DatabaseTable, createPrimary?: boolean): string;
|
|
85
|
+
dropForeignKey(tableName: string, constraintName: string): string;
|
|
86
|
+
dropViewIfExists(name: string, schema?: string): string;
|
|
87
|
+
dropTableIfExists(name: string, schema?: string): string;
|
|
88
|
+
getAddColumnsSQL(table: DatabaseTable, columns: Column[]): string[];
|
|
89
|
+
appendComments(table: DatabaseTable): string[];
|
|
90
|
+
inferLengthFromColumnType(type: string): number | undefined;
|
|
91
|
+
protected wrap(val: string | undefined, type: Type<unknown>): string | undefined;
|
|
46
92
|
}
|