fix(oracle): export portable table DDL
This commit is contained in:
13 files changed
+241
-30
No files matched your search
@@ -873,8 +873,8 @@ export async function listSubpartitions(connectionId: string, database: string,
|
||||
return get(`/api/schema/subpartitions?${qs({ connection_id: connectionId, database, schema, table, catalog })}`);
|
||||
}
|
||||
|
||||
export async function getTableDdl(connectionId: string, database: string, schema: string, table: string, objectType?: ObjectSourceKind, catalog?: string): Promise<string> {
|
||||
return get(`/api/schema/ddl?${qs({ connection_id: connectionId, database, schema, table, object_type: objectType, catalog })}`);
|
||||
export async function getTableDdl(connectionId: string, database: string, schema: string, table: string, objectType?: ObjectSourceKind, catalog?: string, portable = false): Promise<string> {
|
||||
return get(`/api/schema/ddl?${qs({ connection_id: connectionId, database, schema, table, object_type: objectType, catalog, portable })}`);
|
||||
}
|
||||
|
||||
export async function getTableDisplayDdl(connectionId: string, database: string, schema: string, table: string, objectType?: ObjectSourceKind, catalog?: string): Promise<string> {
|
||||
|
||||
@@ -1654,7 +1654,7 @@ export async function listSubpartitions(connectionId: string, database: string,
|
||||
});
|
||||
}
|
||||
|
||||
export async function getTableDdl(connectionId: string, database: string, schema: string, table: string, objectType?: ObjectSourceKind, catalog?: string): Promise<string> {
|
||||
export async function getTableDdl(connectionId: string, database: string, schema: string, table: string, objectType?: ObjectSourceKind, catalog?: string, portable = false): Promise<string> {
|
||||
return invoke("get_table_ddl", {
|
||||
connectionId,
|
||||
database,
|
||||
@@ -1662,6 +1662,7 @@ export async function getTableDdl(connectionId: string, database: string, schema
|
||||
table,
|
||||
objectType,
|
||||
catalog,
|
||||
portable,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1674,6 +1675,7 @@ export async function getTableDisplayDdl(connectionId: string, database: string,
|
||||
objectType,
|
||||
catalog,
|
||||
includePostgresAccess: true,
|
||||
portable: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user