fix: filter SQL completion tables

This commit is contained in:
t8y2
2026-05-13 11:01:59 +08:00
parent b0a808bc14
commit 047e8fc2f1
11 changed files with 174 additions and 41 deletions
+3 -1
View File
@@ -27,8 +27,10 @@ pub async fn list_tables(
connection_id: String,
database: String,
schema: String,
filter: Option<String>,
limit: Option<usize>,
) -> Result<Vec<db::TableInfo>, String> {
dbx_core::schema::list_tables_core(&state, &connection_id, &database, &schema).await
dbx_core::schema::list_tables_core(&state, &connection_id, &database, &schema, filter.as_deref(), limit).await
}
#[tauri::command]