mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-25 09:14:20 +08:00
feat:Support kyuubi presto trino (#2109)
This commit is contained in:
@@ -398,21 +398,23 @@ export function getDbNames(dbId: number, catalog: string): Promise<any> {
|
||||
});
|
||||
}
|
||||
|
||||
export function getTables(databaseId: number, dbName: string): Promise<any> {
|
||||
export function getTables(databaseId: number, catalog: string, dbName: string): Promise<any> {
|
||||
return request(`${process.env.API_BASE_URL}database/getTables`, {
|
||||
method: 'GET',
|
||||
params: {
|
||||
databaseId,
|
||||
catalog: catalog,
|
||||
db: dbName,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export function getColumns(databaseId: number, dbName: string, tableName: string): Promise<any> {
|
||||
export function getColumns(databaseId: number, catalog: string, dbName: string, tableName: string): Promise<any> {
|
||||
return request(`${process.env.API_BASE_URL}database/getColumnsByName`, {
|
||||
method: 'GET',
|
||||
params: {
|
||||
databaseId,
|
||||
catalog: catalog,
|
||||
db: dbName,
|
||||
table: tableName,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user