feat: add SSH config aliases and PostgreSQL extensions

This commit is contained in:
zergmk2 authored and GitHub committed 2026-07-05 20:29:49 +08:00
1 parent 8b035d0989
commit f800d80f90
35 files changed
+1191 -33

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ pub mod schema_cache;
pub mod schema_diff;
pub mod sql_file;
pub mod sqlite_backup;
pub mod ssh_config;
pub mod system_fonts;
pub mod tab_runtime_cache;
pub mod table_export;
+19
View File
@@ -292,3 +292,22 @@ pub async fn list_owners(
) -> Result<Vec<db::OwnerInfo>, String> {
dbx_core::schema::list_owners_core(&state, &connection_id, &database, &schema).await
}
#[tauri::command]
pub async fn list_extensions(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
schema: String,
) -> Result<Vec<db::ExtensionInfo>, String> {
dbx_core::schema::list_extensions_core(&state, &connection_id, &database, &schema).await
}
#[tauri::command]
pub async fn list_available_extensions(
state: State<'_, Arc<AppState>>,
connection_id: String,
database: String,
) -> Result<Vec<db::ExtensionInfo>, String> {
dbx_core::schema::list_available_extensions_core(&state, &connection_id, &database).await
}
+6
View File
@@ -0,0 +1,6 @@
use dbx_core::ssh_config::SshConfigHostEntry;
#[tauri::command]
pub async fn list_ssh_config_hosts() -> Result<Vec<SshConfigHostEntry>, String> {
tauri::async_runtime::spawn_blocking(dbx_core::ssh_config::list_hosts).await.map_err(|err| err.to_string())?
}