Commit Graph
42 Commits
Author SHA1 Message Date
lewis c180c40b36 fix(sql): handle comment-only SQL files 2026-07-22 17:17:50 +08:00
soddygo b276c0c646 fix(core): preserve Rust 1.77 compatibility 2026-07-22 12:38:36 +08:00
zipg a12f8d09b7 fix(mysql): handle export terminators and escaped quotes 2026-07-21 17:13:50 +08:00
t8y2 083ffe7a35 fix(ci): split checks and enforce warning-free Rust builds 2026-07-20 13:45:59 +08:00
t8y2 b5f462f8e0 fix(sqlserver): support GO in SQL file execution 2026-07-10 23:06:52 +08:00
LRcoding fc01cea80f fix(oracle): preserve plsql block terminators 2026-07-07 15:29:43 +08:00
t8y2 6e7f0578b6 fix(saphana): keep DO blocks together 2026-07-07 13:23:53 +08:00
二丫讲梵 18e5df6f5e feat(query-editor): enhance current statement framing 2026-07-06 23:09:21 +08:00
t8y2 b6b510d632 feat(sql): support MySQL routine blocks 2026-07-06 19:06:34 +08:00
onenewcode 71e618dd46 fix: support mysql install scripts without selected database (#2356) 2026-07-02 13:18:49 +08:00
zipgandstaff a224a6747c fix: handle oracle plsql statement ranges
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
2026-07-01 12:26:03 +08:00
t8y2 25dcbeb7e4 feat(oscar): add OSCAR database support 2026-06-30 20:07:55 +08:00
t8y2 c289dda97d fix(mysql): skip delimiter commands in editor 2026-06-27 15:04:13 +08:00
t8y2 2a90567545 fix(mysql): support semicolon delimiter commands 2026-06-27 10:16:59 +08:00
LRcoding eb664dba4c fix(core): support fuzzy table search 2026-06-26 13:15:01 +08:00
ptma c2a3f491cd fix(sql): fix SQL keyword detection failure caused by leading parentheses 2026-06-25 22:27:55 +08:00
t8y2 b56d680cbe fix(yashandb): keep trigger blocks together 2026-06-24 16:58:47 +08:00
t8y2 b53aec5e01 fix(sql): tokenize Oracle PL/SQL blocks with sqlparser 2026-06-18 18:05:56 +08:00
t8y2 4bc8a7d101 fix(sql): recognize CREATE FUNCTION/PROCEDURE/TRIGGER/PACKAGE as Oracle PL/SQL blocks 2026-06-18 16:42:47 +08:00
t8y2 b0cc3ed0d6 fix(sql): split current statement on blank lines 2026-06-17 15:54:57 +08:00
t8y2 a32ead56b9 fix(query): skip comment-only SQL execution 2026-06-15 14:18:40 +08:00
Vergil Lai 799d20a2cf 添加 Manticore Search 支持 (#1145)
* 添加 Manticore Search 支持

* 更新 Manticore Search 文档
2026-06-13 20:23:36 +08:00
t8y2 b542f89a0b fix(sql): keep oracle plsql blocks together 2026-06-12 00:47:21 +08:00
t8y2 8e92254bba fix(sqlserver): preserve procedure DDL batches 2026-06-03 18:14:33 +08:00
t8y2 6e82fe1e3f fix(duckdb): return rows for shorthand result queries 2026-06-03 11:13:14 +08:00
t8y2 f5cc81f761 perf(sql-file): optimize import batching 2026-05-31 11:14:14 +08:00
t8y2 ef4baba57a feat: support double-clicking .db/.sqlite/.duckdb files to open in IDE
Add OS file association for database files (.db, .sqlite, .sqlite3, .duckdb)
so double-clicking them in Finder/Explorer automatically creates a connection.
If the same file path is already connected, prompts the user to switch instead.

Also fix 42 pre-existing clippy warnings in dbx-core (needless_borrow,
too_many_arguments, derivable_impls, manual_div_ceil, type_complexity, etc.).

Closes #527
2026-05-29 17:25:52 +08:00
t8y2 832d8276a0 fix(mysql): treat desc as result-set query 2026-05-28 18:36:13 +08:00
t8y2 195e6b218f fix: decode sql files before execution 2026-05-26 15:43:07 +08:00
t8y2 fd4d3d2338 fix(sql): remove unused executable_sql_slice function 2026-05-24 15:55:49 +08:00
t8y2 b77c02c829 refactor(sqlite): migrate to rusqlite, fix sql statement splitter
Fix SqlStatementSplitter.push_current_statement to preserve leading
comments with their following SQL statement instead of stripping them.
2026-05-24 15:47:36 +08:00
t8y2 1f666f99b3 fix(duckdb): support multiple schemas beyond default "main"
DuckDB was not recognized as a schema-aware database, so only the
default "main" schema was shown in the object tree and schema selector.
Added DuckDB to schema-aware type lists, implemented schema listing via
information_schema.schemata, and replaced hardcoded table_schema = 'main'
with parameterized queries.
2026-05-24 10:26:09 +08:00
t8y2 065f0a4234 fix(sql): refine current statement cursor resolution
Treat blank-line-separated statements as part of the previous statement when the cursor sits on the semicolon boundary.\nKeep same-line cursor navigation moving to the next statement.\nAdd regression coverage for the cursor boundary cases described in issue #427.
2026-05-24 01:12:31 +08:00
t8y2 7a3ff3bff9 refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
t8y2 fe6fead2dc fix(mysql): prevent crash when DELIMITER follows non-ASCII comments (#360)
parse_delimiter_command used str slicing (line[..10]) which panics on
non-char boundaries when the buffer contains multi-byte UTF-8 characters.
Also fixed DELIMITER detection to check only the last line of the buffer
instead of the entire accumulated content.
2026-05-20 16:22:00 +08:00
t8y2 c822c898c7 feat(sql): support MySQL DELIMITER syntax in statement splitter
Parse DELIMITER directives (e.g., DELIMITER //, DELIMITER $$) so
stored procedures, functions, and triggers with internal semicolons
are kept as single statements. Disable PostgreSQL dollar-quoting
when a custom delimiter is active to avoid conflicts.
2026-05-19 18:29:33 +08:00
t8y2 e97e965ea1 fix: skip MySQL dump helper statements on import 2026-05-16 12:30:31 +08:00
t8y2 f4c7c1d764 fix: handle MySQL backup SQL import 2026-05-16 12:13:40 +08:00
t8y2 24ab55ed17 fix(sqlserver): preserve batch semantics for CTE and DECLARE statements
SQL Server treats `;` as a statement terminator, not a batch separator.
The previous logic split multi-statement SQL by `;` and executed each
independently, breaking variable/CTE scope across statements.

Send the entire SQL as a single batch via `simple_query` so DECLARE,
SET, and CTE definitions remain visible to subsequent statements.
Split only on the `GO` client directive when present.
2026-05-12 16:22:22 +08:00
t8y2 f4f3193994 fix(sql): detect result queries after comments 2026-05-10 00:48:24 +08:00
t8y2 41445ff474 chore: add rustfmt.toml and apply unified code formatting 2026-05-05 14:16:18 +08:00
t8y2 cf4f25fd52 feat: extract dbx-core crate for web deployment support
Refactor all database drivers, query execution, schema operations, and
business logic into a shared `dbx-core` crate. The Tauri desktop app
becomes a thin shell delegating to dbx-core, enabling future web and
CLI frontends to reuse the same core.
2026-05-05 03:16:24 +08:00