dbx/apps/desktop/src/lib
zipg 43234ed47d
fix(grid): fix short column header clipping with index indicator
2026-08-07 17:06:19 +08:00
..
__tests__ feat(ai): add OpenCode CLI provider 2026-08-07 17:06:03 +08:00
ai feat(ai): add OpenCode CLI provider 2026-08-07 17:06:03 +08:00
app feat(grid): enhance field search and filter interaction 2026-08-07 13:43:55 +08:00
backend feat(docs): database documentation viewer and DBML export 2026-08-07 03:35:19 +08:00
backup feat(backup): improve progress history and PostgreSQL exports 2026-08-02 19:35:44 +08:00
common feat(elasticsearch): add response content search 2026-08-06 17:09:15 +08:00
connection fix(postgres): correct query and connection timeout handling under SSH tunnel 2026-08-07 13:45:00 +08:00
dataGrid fix(grid): fix short column header clipping with index indicator 2026-08-07 17:06:19 +08:00
database feat(xugu): add programmable object compile actions 2026-08-07 03:30:52 +08:00
diagnostics
diagram feat(diagram): enhance ER diagram editing and exports 2026-08-03 16:05:57 +08:00
document fix(mongo): stabilize estimated-total pagination 2026-07-31 14:51:25 +08:00
driverStore
editor fix(editor): stabilize SQL run-statement gutter width 2026-08-06 14:00:09 +08:00
elasticsearch feat(easysearch): add first-class database support 2026-07-30 19:03:09 +08:00
etcd feat(etcd): add cluster operations and access control 2026-07-31 01:06:02 +08:00
export fix(export): show all dameng databases in export dropdown 2026-08-07 13:48:10 +08:00
hbase
history
imports fix(import): decrypt Navicat passwords over HTTP 2026-08-01 20:28:36 +08:00
kv feat(etcd): add cluster operations and access control 2026-07-31 01:06:02 +08:00
mcp feat(mcp): add update notification badge 2026-08-05 15:52:20 +08:00
metadata fix(informix): resolve metadata owners correctly 2026-08-02 09:04:30 +08:00
mongo fix(mongodb): support collation for find queries 2026-08-04 00:37:13 +08:00
mq fix(rocketmq): 优化消费组加载/连接并修复积压、FIFO 与 Docker remap 2026-08-06 01:12:31 +08:00
mqtt feat(mqtt): add MQTT broker connection support 2026-08-04 19:05:05 +08:00
nacos feat(nacos): improve service and instance management 2026-08-06 12:16:52 +08:00
query feat(query): show database server messages in query results 2026-08-07 15:18:32 +08:00
redis feat(redis): view and edit Hash field expiry (HEXPIRE/HTTL/HPERSIST) 2026-08-07 02:41:04 +08:00
savedSql fix(saved-sql): 修复 SQL 库连接关联丢失与历史文件不可见 2026-08-05 23:58:32 +08:00
schema
settings feat(grid): show column index indicators in data headers 2026-08-06 16:29:26 +08:00
sidebar fix(sidebar): match cross-word table names via prefix concatenation 2026-08-07 13:43:42 +08:00
sql fix(postgres): correct query and connection timeout handling under SSH tunnel 2026-08-07 13:45:00 +08:00
sqlFile
startup fix(frontend): guard startup and loading shortcuts 2026-08-03 16:57:26 +08:00
table fix(settings): keep cross-db same-name preset fields 2026-08-07 15:31:44 +08:00
tabs fix(editor): protect external SQL files from conflicting changes 2026-08-06 20:13:59 +08:00
webdav
zookeeper feat(zookeeper): support cluster authentication setup 2026-08-03 16:58:47 +08:00
README.md
fieldMappingPresets.ts

README.md

Desktop Library Layout

src/lib is organized by product/runtime domain. Keep implementation modules inside a domain folder instead of adding new files at the root.

  • backend: Tauri, HTTP, platform, storage, and transport bridges.
  • common: generic helpers with no DBX feature ownership.
  • app, tabs, sidebar, connection: shell, navigation, and connection UI state helpers.
  • database, metadata, schema, table: relational database metadata, capabilities, DDL, and table-object helpers.
  • sql, sql/semantic, editor, query, history, savedSql: SQL editing, execution, diagnostics, history, and saved SQL behavior. Keep fixed SQL completion statements and their database-specific variants in sql/sqlSnippetTemplates.ts; cross-check row-limiting families against crates/dbx-core/src/sql_dialect/capabilities.rs and authoritative dialect documentation, and never replace a user-customized built-in body with a generated default.
  • dataGrid: result/grid rendering, editing, previews, pagination, and export helpers tied to the grid.
  • ai, mcp: AI assistant and MCP configuration helpers.
  • redis, mongo, elasticsearch, etcd, kv, mq, nacos, zookeeper, webdav: non-relational or service-specific helpers.
  • diagram, document, export, imports: feature-specific utilities that are shared by more than one component.

Tests under src/lib/__tests__ mirror the same domain folders. When moving a module, update both runtime imports and colocated tests so stale root-level aliases do not return.

Schema Diff Metadata Guardrails

Schema comparison must filter disabled object types before loading metadata. Tables load columns and the relational metadata enabled by the compare options; views load DDL only.

Do not call column, index, foreign-key, or trigger metadata APIs for views. MySQL 5.7 can validate a SQL SECURITY DEFINER view during column discovery and return error 1143 when its definer account no longer exists, even though SHOW CREATE VIEW still succeeds. Keep view detection centralized in schema/schemaDiffTableFilter.ts and preserve the DDL-only plan in schema/schemaDiffMetadataLoad.ts.

Regression coverage belongs in:

  • src/lib/__tests__/schema/schemaDiffTableFilter.spec.ts
  • src/lib/__tests__/schema/schemaDiffMetadataLoad.spec.ts