feat(sidebar): extend filters to views and routines
This commit is contained in:
1 parent
3dbcc2d0dc
commit
b74d49e982
20 files changed
+268
-46
No files matched your search
@@ -829,7 +829,7 @@ export async function getTableComment(_connectionId: string, _database: string,
|
||||
throw new Error("Table comment lookup 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): Promise<ObjectInfo[]> {
|
||||
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({
|
||||
connection_id: connectionId,
|
||||
@@ -840,6 +840,7 @@ export async function listObjects(connectionId: string, database: string, schema
|
||||
limit,
|
||||
offset,
|
||||
catalog,
|
||||
table_name_filter: tableNameFilter ? JSON.stringify(tableNameFilter) : undefined,
|
||||
})}`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1093,7 +1093,7 @@ export async function getTableComment(connectionId: string, database: string, sc
|
||||
});
|
||||
}
|
||||
|
||||
export async function listObjects(connectionId: string, database: string, schema: string, objectTypes?: (SidebarObjectKind | "EVENT")[], filter?: string, limit?: number, offset?: number, catalog?: string): Promise<ObjectInfo[]> {
|
||||
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,
|
||||
database,
|
||||
@@ -1103,6 +1103,7 @@ export async function listObjects(connectionId: string, database: string, schema
|
||||
limit,
|
||||
offset,
|
||||
catalog,
|
||||
tableNameFilter,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user