1 parent
44dc2a88f8
commit
277386ec81
13 files changed
+513
-32
No files matched your search
@@ -161,6 +161,7 @@ export const listSchemas = forward("listSchemas");
|
||||
export const listSchemaInfos = forward("listSchemaInfos");
|
||||
export const listTables = forward("listTables");
|
||||
export const getTableComment = forward("getTableComment");
|
||||
export const getMysqlTableAutoIncrement = forward("getMysqlTableAutoIncrement");
|
||||
export const listObjects = forward("listObjects");
|
||||
export const listObjectStatistics = forward("listObjectStatistics");
|
||||
export const listCompletionObjects = forward("listCompletionObjects");
|
||||
|
||||
@@ -831,6 +831,10 @@ export async function getTableComment(_connectionId: string, _database: string,
|
||||
throw new Error("Table comment lookup is not available in the web backend");
|
||||
}
|
||||
|
||||
export async function getMysqlTableAutoIncrement(_connectionId: string, _database: string, _table: string): Promise<string | null> {
|
||||
throw new Error("MySQL AUTO_INCREMENT metadata is not available in the web backend");
|
||||
}
|
||||
|
||||
export async function listObjects(connectionId: string, database: string, schema: string, objectTypes?: (SidebarObjectKind | "EVENT")[], filter?: string, limit?: number, offset?: number, catalog?: string, tableNameFilter?: TableNameFilter): Promise<ObjectInfo[]> {
|
||||
return get(
|
||||
`/api/schema/objects?${qs({
|
||||
|
||||
@@ -1109,6 +1109,10 @@ export async function getTableComment(connectionId: string, database: string, sc
|
||||
});
|
||||
}
|
||||
|
||||
export async function getMysqlTableAutoIncrement(connectionId: string, database: string, table: string): Promise<string | null> {
|
||||
return invoke("get_mysql_table_auto_increment", { connectionId, database, table });
|
||||
}
|
||||
|
||||
export async function listObjects(connectionId: string, database: string, schema: string, objectTypes?: (SidebarObjectKind | "EVENT")[], filter?: string, limit?: number, offset?: number, catalog?: string, tableNameFilter?: import("@/types/database").TableNameFilter): Promise<ObjectInfo[]> {
|
||||
return invoke("list_objects", {
|
||||
connectionId,
|
||||
|
||||
Reference in new issue
Block a user