feat(editor): add SQL semantic diagnostics
This commit is contained in:
1 parent
64c068bbf5
commit
0e189ba0cc
18 files changed
+997
-19
No files matched your search
@@ -146,3 +146,11 @@ pub async fn execute_in_transaction(
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn analyze_sql_references(
|
||||
sql: String,
|
||||
dialect: Option<String>,
|
||||
) -> Result<dbx_core::sql_analysis::SqlReferenceAnalysis, String> {
|
||||
dbx_core::sql_analysis::analyze_sql_references(&sql, dialect.as_deref())
|
||||
}
|
||||
@@ -250,6 +250,8 @@ pub fn run() {
|
||||
commands::ai::delete_ai_conversation,
|
||||
commands::app_settings::load_desktop_settings,
|
||||
commands::app_settings::save_desktop_settings,
|
||||
commands::app_settings::load_pinned_tree_node_ids,
|
||||
commands::app_settings::save_pinned_tree_node_ids,
|
||||
commands::connection::test_connection,
|
||||
commands::connection::connect_db,
|
||||
commands::connection::disconnect_db,
|
||||
@@ -285,6 +287,7 @@ pub fn run() {
|
||||
commands::query::execute_batch,
|
||||
commands::query::execute_script,
|
||||
commands::query::execute_in_transaction,
|
||||
commands::query::analyze_sql_references,
|
||||
commands::sql_file::preview_sql_file,
|
||||
commands::sql_file::execute_sql_file,
|
||||
commands::sql_file::cancel_sql_file_execution,
|
||||
|
||||
Reference in new issue
Block a user