Abeautifulsnow
dddb813fc6
refactor(grid): 提取 cellValue 格式化到共享模块并增加测试 ( #218 )
...
将 CellValue 类型和 displayCellValue(原 formatCell)提取到
src/lib/cellValue.ts,DataGrid.vue 和 useDataGridExport.ts 统一引用,
移除 composable 中冗余的 formatCell 参数传递。
2026-05-11 18:56:08 +08:00
t8y2
cab0e79dad
fix(oracle): 修复表数据加载与编辑
2026-05-11 16:35:59 +08:00
t8y2
1934205c86
feat(grid): add LIKE, NOT LIKE, <, > context menu filters
...
Add four new filter options to the right-click context menu in table
data view: contains (LIKE), does not contain (NOT LIKE), less than (<),
and greater than (>). Includes en/zh-CN/es translations.
2026-05-11 12:39:31 +08:00
t8y2
8032c63727
fix(grid): persist WHERE filter input across tab switches ( closes #210 )
...
whereFilterInput was a component-local ref that got lost when switching
tabs because DataGrid is destroyed and recreated via :key binding.
Store whereInput in the QueryTab state and pass it as initialWhereInput
prop so it survives tab switches.
2026-05-11 12:24:08 +08:00
t8y2
9413df686e
fix(grid): Enter 键优先选中自动补全建议项 ( closes #202 )
...
WHERE 和 ORDER BY 输入框中,有自动补全建议显示时按 Enter 键
现在会选中当前高亮的建议项,而不是直接执行查询。
2026-05-11 11:00:02 +08:00
t8y2
b0480494ff
feat: add MongoDB table view with inline editing support
...
- Add document/table view toggle to MongoDocBrowser
- Convert MongoDB documents to DataGrid format (union of all top-level keys)
- Add customSave prop to DataGrid for pluggable save backends
- MongoDB grid save converts dirty rows to mongoUpdateDocument calls
- Enable transaction-mode toolbar (commit/rollback) for customSave
2026-05-11 01:38:24 +08:00
t8y2
14680238b8
feat: editor enhancements, DataGrid refactor, and sidebar improvements
...
- Add bracket auto-close and matching to SQL editor (closeBrackets, bracketMatching)
- Show truncation warning banner when query results exceed 10,000 rows
- Extract shared export format functions (CSV/JSON/SQL INSERT) to lib/exportFormats.ts
- Add progressive rendering to sidebar tree (50-node cap with "show more")
- Fix connection node expanding before connect succeeds
- Split DataGrid.vue (3177→2535 lines) into 4 composables:
useDataGridExport, useDataGridColumnResize, useDataGridSelection, useDataGridEditor
2026-05-11 01:08:07 +08:00
t8y2
49f03b0c69
feat: add loading overlay with elapsed timer to DataGrid
...
Show a semi-transparent overlay with a spinning loader and elapsed
time counter while queries are executing, preventing accidental
interaction with the grid content.
2026-05-11 00:30:46 +08:00
t8y2
f456ddd979
perf: full-stack performance and security hardening
...
Frontend performance:
- Debounce DataGrid search (150ms) and replace O(n) row wrapping with index array
- Replace QueryStore deep watcher with targeted field-level persistence snapshot
- Extract shared nodeConfig computed in TreeItem (eliminates 15x redundant getConfig calls)
- Clear tab result data on close to free memory
- Add LRU eviction for completion caches (50 entry cap)
- Replace savedSql version string join with numeric counter
Memory leak fixes:
- Store Tauri event unlisten handles and clean up on unmount
- Clean up DataGrid search timer on unmount
Backend security & resource management:
- Add 50MB request body size limit
- Reject file uploads >100MB and SQL files >200MB
- Clean up SSE channels after transfer/import completes
- Recover from poisoned mutex instead of panicking
- Delete temporary upload files after preview
- Validate SQL file paths to prevent directory traversal
2026-05-11 00:18:09 +08:00
t8y2
bafb424b23
perf: full-stack performance optimization
...
Frontend:
- Debounce queryStore tab persistence (remove flush:sync deep watcher)
- Eliminate unnecessary object spreading in connectionStore error handling
- Use in-place delete for completion cache invalidation
- Deduplicate schema cache prefix API calls
- Split echarts, reka-ui, marked, @codemirror/commands into separate chunks
- Lazy-load xlsxExport and markdownTable in DataGrid
- Lazy-load marked parser in UpdateDialog
Backend:
- Replace tokio::sync::Mutex with RwLock for AppState connections/configs
(60+ concurrent reads no longer block each other)
- Parallelize PostgreSQL DDL metadata queries with tokio::try_join!
2026-05-10 23:23:22 +08:00
t8y2
f5b36a0f60
feat(history): track database activity
2026-05-10 14:18:20 +08:00
t8y2
8664cc5b48
feat(grid): add clipboard shortcuts
2026-05-10 10:22:17 +08:00
t8y2
5a15d7a424
fix(ui): refine layout polish
2026-05-10 10:17:18 +08:00
t8y2
d3919a5c20
fix(grid): refine column filter popover
2026-05-10 00:16:32 +08:00
t8y2
95519903b6
feat(grid): add DataGrip-style column filters
2026-05-10 00:12:50 +08:00
t8y2
a878ec203a
feat(data): support connection URLs and XLSX export
2026-05-09 23:11:15 +08:00
t8y2
8c1ba16a2c
fix(grid): move transaction status near actions
2026-05-09 18:18:09 +08:00
t8y2
e984f698b2
fix(ui): 优化表格与 SQL 文件弹窗布局
2026-05-09 17:54:38 +08:00
t8y2
36b1ac8eda
fix(grid): 翻页后重置表格滚动位置
2026-05-09 17:39:20 +08:00
t8y2
de6fecb18b
fix: restore workspace build and refine grid menu
2026-05-09 17:07:52 +08:00
t8y2
40a3c13961
feat(grid): improve table context menu
2026-05-09 16:36:12 +08:00
rarnu
c6aa0cf84f
1. 修复 ORDER BY watch 重复数组
...
2. WHERE / ORDER BY 输入框 @blur 处理
2026-05-09 15:51:13 +08:00
rarnu
9261cb71a2
1. src/components/grid/DataGrid.vue
...
- 左侧搜索框:移除了 WHERE 支持(isWhereSearch 永远返回 false),现在是纯客户端文本过滤。保留了列名代码提示功能(Tab 补全、箭头导航)。
- WHERE 框:新增列名代码提示(独立的下拉建议面板),支持单双引号和小括号自动配对,Enter 直接应用过滤。
- ORDER BY 框:新增列名代码提示(同样的建议面板),Enter 直接应用排序。
- 刷新/回滚/提交:reload emit 现在传递 4 个参数 (sql, searchText, whereInput, orderBy),确保刷新后所有条件不丢失。
- 分页/排序:统一使用新的 currentWhereInput() 函数,替代已废弃的 activeWhereInput。
- 删除了 applyWhereSearch() 和 onSearchEnter()(左侧搜索不再需要执行 WHERE 查询)。
2. src/composables/useDataGridActions.ts
- onReloadData() 签名改为接受 4 个参数 (sql, searchText, whereInput, orderBy)。
- table-data 模式刷新时,用 buildTableSql(tab, { whereInput, orderBy }) 重建 SQL,保留 WHERE 和 ORDER BY 条件。
3. src/components/layout/ContentArea.vue
- reload emit 签名同步更新为 4 个参数。
- results 模式和 table-data 模式两个 DataGrid 的 @reload 处理器都转发全部 4 个参数。
4. src/App.vue
- ContentArea 的 @reload 处理器转发 4 个参数给 onReloadData()。
2026-05-09 15:04:06 +08:00
t8y2
424bbdfc52
feat: add value editor and Set NULL in cell detail panel
...
Double-click value area or click Edit button to open textarea editor
for long text/JSON. Add Set NULL button for quick null assignment.
Fix: null values via ?? operator were ignored in dirty row display.
2026-05-09 01:06:19 +08:00
t8y2
ad79642502
feat: auto-fit column widths based on header and data content
...
Scan column names and first 50 rows to calculate optimal column width
instead of using a fixed 150px default. Double-click column separator
to auto-fit individual columns. Min 60px, max 400px.
2026-05-09 00:51:51 +08:00
t8y2
70b55fe49a
feat: add independent WHERE and ORDER BY filter inputs to data grid ( #165 )
...
- Split WHERE and ORDER BY into separate inputs alongside search bar
- Three equal sections: Search | WHERE | ORDER BY with border separators
- Preserve tableMeta on error so filters remain visible after failed queries
- Show schema@database format in table data badge
2026-05-09 00:11:46 +08:00
t8y2
0e2fbc5a40
feat: show sort hint icon on column header hover ( #165 )
2026-05-08 21:44:56 +08:00
t8y2
bd08d9865d
feat: add "Copy as INSERT" to data grid context menu ( #166 )
2026-05-08 21:33:41 +08:00
t8y2
77ed6404a0
fix: disable overscroll bounce on data grid to prevent header desync ( #156 )
2026-05-08 20:38:40 +08:00
rarnu
8a249a2194
add: 在结果集中增加数据过滤的功能 ( #163 )
...
* add: 在结果集中增加数据过滤的功能
* 1. 提取 isResultsContext — 新增具名计算属性,替代魔法字符串 results,模板和逻辑中统一使用。
2. wherePredicate 在 results 场景下短路 — 加了 canUseWhereSearch.value ? ... : undefined 守卫,避免在结果集界面无意义地调用 normalizeWhereInput()。在 results 上下文下:
- wherePredicate → undefined
- isWhereSearch → false(因为 canUseWhereSearch 为 false)
- activeWhereInput → undefined
- 搜索框 placeholder 切换为纯 search(由 canUseWhereSearch 控制,已存在)
- 应用按钮隐藏(v-if=isWhereSearch,已存在)
逻辑链现在是一致的:canUseWhereSearch === false 时,所有 where 相关功能(解析、建议、按钮、回车提交)全部失效
2026-05-08 18:33:59 +08:00
Bacon2994
3b4b6c1ff7
fix(query): 修复查询结果表头提示与全量排序 ( #164 )
...
* fix(grid): 修复查询结果表头提示与排序
修复 MySQL 查询结果列元数据取错库名的问题,并补齐查询结果全量排序链路,避免表头提示与排序行为失效。
* fix(query): 修复结果排序重复列名报错
2026-05-08 18:31:09 +08:00
rarnu
47ad960bbb
Fix: DataGrid数据集和工具栏的修复及加强 ( #157 )
...
* fix: 修复结果集内的数据过滤功能
* add: 将原先误删的WHERE查询加回
* add: 合并事务栏和搜索栏,并且在结果集中不启用搜索功能
* add: 修复在表数据和结果集模式下,DataGrid刷新时未保留查询条件的问题,将表数据和结果集的处理逻辑进行拆分
* add: 与主分支合并,解决冲突
* add: 恢复i18n
* add: 恢复useDataGridActions.ts
* add: 恢复ContentArea.vue
* add: 恢复DataGrid.vue
* fix: 修复括号自动配对的bug
* add: 将DDL按钮移到表数据编辑的第一行尾,并且不在DataGrid中显示
2026-05-08 16:04:21 +08:00
t8y2
9fd16e3c1f
perf(grid): pre-stringify JSON/JSONB values and truncate cell display
...
Serialize JSON/JSONB as strings in Postgres and MySQL drivers to avoid
repeated JSON.stringify in the render loop. Truncate cell display to
256 chars so the browser doesn't lay out huge text nodes on scroll.
2026-05-08 11:23:31 +08:00
t8y2
fdf65ac5e3
fix(grid): display JSONB values as JSON string in edit mode and detail panel ( #152 )
...
String() on objects produces [object Object]. Use JSON.stringify()
consistently wherever cell values are converted to strings.
2026-05-08 11:12:05 +08:00
t8y2
631db17a08
refactor: merge data table info bar and transaction toolbar into one row
...
Move refresh/commit/rollback buttons from DataGrid's internal toolbar
to ContentArea's table info header. Remove the redundant second row
and the column count display.
2026-05-07 23:48:51 +08:00
t8y2
9206daf679
fix: allow text selection in DDL panel
...
Closes #143
2026-05-07 23:22:47 +08:00
rarnu
53c5c28542
fix: 修复结果集内的数据过滤功能 ( #145 )
2026-05-07 22:05:27 +08:00
rarnu
cacaf4d7a2
1. Rust 事务连接池问题 - 用 pool.acquire() 获取专用连接,所有语句在同一物理连接上执行
...
2. BEGIN 失败静默回退 - 直接返回错误,不再静默降级
3. queryStore.ts - 清除了 25+ 条 console.log,合并了两个分支的重复逻辑
4. DataGrid.vue - shouldUseTransaction() 改为 computed 属性 useTransaction
2026-05-07 16:55:32 +08:00
rarnu
814fda7433
add: 增加对于查询得到的结果集直接进行数据编辑的功能。当查询是单表且包含主键(有联合主键时包含全部主键)时,可以在结果集内双击单元格修改数据,修改结果以事务形式提交或回滚。
2026-05-07 15:09:59 +08:00
t8y2
ecbd94c7be
fix(grid): preserve sort order when paginating ( #128 )
2026-05-07 10:44:11 +08:00
t8y2
bb2a3021ea
fix(grid): add UTF-8 BOM to CSV export for Chinese compatibility
2026-05-07 04:05:04 +08:00
t8y2
fde76d5576
fix(grid): show query errors as alert instead of table row
2026-05-07 02:23:33 +08:00
t8y2
b79e5b53bc
feat: add GaussDB ODBC support and flatten connection list
...
- Add GaussDB/openGauss support via ODBC (resolves #106 )
- Use pg_catalog queries instead of information_schema for compatibility
- Share ODBC environment across drivers with auto ODBCSYSINI detection
- Fix ODBC error message false positive on "Driver" keyword match
- Merge connection dialog categories into a single flat list
- Remove duplicate DDL button from data grid footer
2026-05-07 02:18:20 +08:00
t8y2
569cb26261
feat(grid): show column type and comment in tooltip instead of inline
...
Move the column type annotation from inline display (#type) to a hover
tooltip on the header cell. The tooltip shows the column type with color
and comment (if present), matching the tab tooltip style.
2026-05-06 19:50:41 +08:00
t8y2
746a4c491a
fix(grid): display JSONB values as JSON string instead of [object Object]
...
Closes #100
2026-05-06 12:10:33 +08:00
t8y2
3acd9280ac
chore: add oxfmt + husky + lint-staged for code formatting and CI format checks
2026-05-05 15:41:34 +08:00
t8y2
41bceffc0e
feat: add web deployment with axum server, Docker support, and browser UI
...
Introduce src-web (axum HTTP server) exposing all 43 database operations
as REST APIs with SSE streaming for AI, transfers, and SQL file execution.
Frontend adapts automatically between Tauri and HTTP backends via api.ts.
Includes password authentication, Docker packaging, and login page.
2026-05-05 03:16:50 +08:00
t8y2
33cb298a8d
feat: disable autocorrect and spellcheck for input fields across components
2026-05-04 02:55:19 +08:00
skyler
1b8d56a43b
Merge pull request #65 from SuLea-IT/codex/field-lineage
...
[codex] Add field lineage viewer and review fixes
2026-05-03 11:18:36 +08:00
SuLea-IT
4d6cd5351c
fix: address lineage review feedback
2026-05-03 06:02:39 +08:00