mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-01 08:26:35 +00:00
fix: filter SQL completion tables
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user