feat(desktop): add connection-level database browser

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-08-12 02:20:05 +08:00
1 parent 44dbd0e0e7
commit fee3ed1d5a
46 files changed
+781 -29

No files matched your search

+8
View File
@@ -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>>,
+1
View File
@@ -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,