Commit Graph

31 Commits

Author SHA1 Message Date
t8y2 aefb6bf0ef fix: prevent SELECT with REPLACE/TRUNCATE functions from triggering danger warning
The DANGER_RE regex matched keywords anywhere in the SQL text, causing
SELECT queries using REPLACE() or TRUNCATE() functions to incorrectly
trigger the destructive-SQL warning dialog. Check only the first keyword
of each semicolon-separated statement instead.

Also fix dialog content overflow by adding min-w-0 to the <pre> element,
and move macOS frameworks config from tauri.conf.json to CI-only
TAURI_CONFIG so local `tauri dev` no longer requires libltdl/libodbc
to be globally installed.

Closes #135
2026-05-07 19:07:41 +08:00
Bacon2994 f9d6edb136 feat(connection): 支持设置默认数据库
统一新建查询的默认数据库选择逻辑,减少重复手动选择。
2026-05-07 16:49:56 +08:00
t8y2 790791f946 feat: add execute mode settings and cursor position handling in SQL editor 2026-05-04 21:19:07 +08:00
t8y2 bc7f521604 feat: add connection group management and sidebar layout persistence 2026-05-04 13:52:42 +08:00
skyler 1818cd3b78
Merge pull request #78 from SuLea-IT/codex/issue-76-database-search
[codex] Add database-wide search
2026-05-04 12:05:37 +08:00
SuLea-IT 5534b13fde feat: add database-wide search 2026-05-04 12:01:19 +08:00
SuLea-IT 8bd1d4c2a8 feat: improve connection and table tree UX 2026-05-04 11:49:28 +08:00
yavon007 a59494e4c4 fix: guard index column splits, restrict INCLUDE/WHERE by db, unify index type dropdowns
- Filter empty strings from STRING_AGG/LISTAGG splits in SQL Server, Oracle, MySQL
- Emit INCLUDE clause only for PostgreSQL and SQL Server (not MySQL/SQLite)
- Emit WHERE clause only for PostgreSQL, SQL Server, SQLite (not MySQL)
- Replace index type free-text input with dropdown for all 5 database types
- Fix hardcoded column count in resize handle (use indexColLabels.length - 1)
- Fix pg_get_indexdef type mismatch: cast k.n from bigint to integer
2026-05-03 20:33:09 +08:00
yavon007 25f2f46718 fix: correct PostgreSQL numeric_scale formula and add index SQL test coverage
The numeric_scale extraction used (& 2047) - 1024 which produces negative
values; fixed to & 65535. Added 12 tests for index SQL generation: INCLUDE,
USING, WHERE, COMMENT ON INDEX, type prefix, and combined scenarios.
2026-05-03 20:11:44 +08:00
yavon007 4e1b35186b feat: add index type, included columns, filter, and comment support
- Add filter, index_type, included_columns, and comment fields to IndexInfo
- PostgreSQL: query pg_am for index type, use indnkeyatts to split key/included columns, retrieve index comments via obj_description()
- SQL Server: add type_desc, filter_definition, included columns via is_included_column
- MySQL: add INDEX_TYPE from information_schema.STATISTICS
- Oracle: add INDEX_TYPE from ALL_INDEXES
- DDL generation: add USING (PostgreSQL), type prefix + INCLUDE + WHERE (SQL Server), COMMENT ON INDEX (PostgreSQL)
- Frontend: update types, state mapping, SQL generation, and i18n translations
2026-05-03 20:10:35 +08:00
t8y2 a66cffb692 feat: add configuration export/import with passphrase encryption 2026-05-03 12:46:49 +08:00
SuLea-IT 4d6cd5351c fix: address lineage review feedback 2026-05-03 06:02:39 +08:00
SuLea-IT 5a37f584aa feat: add field lineage viewer 2026-05-03 05:39:05 +08:00
t8y2 0fdd0c1f9b feat: enhance SQL completion suggestions for JOINs and comma-separated tables 2026-05-03 00:00:23 +08:00
SuLea-IT d180539778 feat: add explain plan viewer 2026-05-02 21:00:53 +08:00
SuLea-IT f09d1b0973 feat: add table structure editor 2026-05-02 19:40:40 +08:00
SuLea-IT 2ebd72b3b7 feat: import table data from files 2026-05-02 19:04:41 +08:00
skyler 1fe40b7a09
Merge pull request #54 from SuLea-IT/codex/grid-row-change-filter
[codex] refine grid row change indicators
2026-05-02 17:07:29 +08:00
SuLe 747784ffe0 refine grid row change indicators 2026-05-02 17:03:54 +08:00
SuLe 5d48b2a76f Add database SQL export action 2026-05-02 16:41:29 +08:00
skyler 4efd7c2517
Merge pull request #55 from SuLea-IT/codex/issue-51-sql-table-ux
[codex] Fix SQL editor and table query UX
2026-05-02 16:28:52 +08:00
SuLe 39a257753b Fix SQL editor and table query UX 2026-05-02 13:49:46 +08:00
SuLe b6f89f02fb add database relationship diagrams 2026-05-02 13:09:53 +08:00
SuLe 3e7abf8212 Add grid cell selection and details 2026-05-01 09:40:18 +08:00
SuLea-IT 806a855ef0
Add query cancellation controls (#41)
Co-authored-by: SuLe <sule@SuLedeMacBook-Air.local>
Co-authored-by: skyler <77960507+t8y2@users.noreply.github.com>
2026-05-01 00:05:15 +08:00
Bacon2994 a248615819
feat: add sql editor completion (#33) 2026-04-30 17:49:19 +08:00
Bacon2994 6b97f280ec
fix: stabilize sql execution shortcuts (#29)
Co-authored-by: zihan.wu <zihan.wu@erry.com>
2026-04-30 17:12:54 +08:00
SuLea-IT aea6bf3239
feat: add tab close menu actions (#24)
Co-authored-by: SuLe <sule@SuLedeMacBook-Air.local>
2026-04-30 16:35:01 +08:00
SuLea-IT 5ee4f9300f
feat: format sql (#19)
Co-authored-by: SuLe <sule@SuLedeMacBook-Air.local>
2026-04-30 15:56:16 +08:00
SuLea-IT 48f56f15b1
feat: pin tabs and tree nodes (#17)
Co-authored-by: SuLe <sule@SuLedeMacBook-Air.local>
2026-04-30 14:50:40 +08:00
SuLea-IT e3b8f57326
feat: execute selected sql (#13)
Co-authored-by: SuLe <sule@SuLedeMacBook-Air.local>
2026-04-30 14:38:26 +08:00