feat(editor): include database name in generated SQL

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-08-22 13:40:42 +08:00
1 parent fcb6ea92db
commit a6f4cebd18
34 files changed
+379 -23

No files matched your search

+8 -2
View File
@@ -533,8 +533,14 @@ pub fn build_dropped_file_preview_sql(
}
#[tauri::command]
pub fn build_table_select_sql(options: dbx_core::sql_dialect::TableDataSelectSqlOptions) -> Result<String, String> {
Ok(dbx_core::sql_dialect::build_table_data_select_sql(options))
pub fn build_table_select_sql(
options: dbx_core::sql_dialect::TableDataSelectSqlOptions,
include_database_name: Option<bool>,
) -> Result<String, String> {
Ok(dbx_core::sql_dialect::build_table_data_select_sql_with_database(
options,
include_database_name.unwrap_or(false),
))
}
#[tauri::command]