feat(desktop): add connection-level database browser
This commit is contained in:
46 files changed
+781
-29
No files matched your search
@@ -19,6 +19,14 @@ pub async fn list_databases(
|
||||
dbx_core::schema::list_databases_core(&state, &connection_id).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn list_database_metadata(
|
||||
state: State<'_, Arc<AppState>>,
|
||||
connection_id: String,
|
||||
) -> Result<Vec<db::DatabaseInfo>, String> {
|
||||
dbx_core::schema::list_database_metadata_core(&state, &connection_id).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn list_database_storage(
|
||||
state: State<'_, Arc<AppState>>,
|
||||
|
||||
@@ -1629,6 +1629,7 @@ pub fn run() {
|
||||
commands::plugins::install_jdbc_plugin_local,
|
||||
commands::plugins::uninstall_jdbc_plugin,
|
||||
commands::schema::list_databases,
|
||||
commands::schema::list_database_metadata,
|
||||
commands::schema::list_database_storage,
|
||||
commands::schema::get_sqlserver_completion_context,
|
||||
commands::schema::list_doris_catalogs,
|
||||
|
||||
Reference in new issue
Block a user