Commit Graph
172 Commits
Author SHA1 Message Date
zipgandzipg 74c275b2ce fix(sqlserver): 表结构支持查看约束(主键/唯一/外键/检查/默认值) (#9581)
SQL Server 连接的「编辑表结构」面板里只有 DDL/字段/索引/外键/触发器,
没有「约束」页签;用户无法查看某张表的约束。

list_constraints 在 SQL Server 驱动中完全缺失:驱动侧没有对应实现,
dbx-core 的 list_constraints_core 没有 SQL Server 分支,直接落到默认的
空数组;前端 tableMetadataCapabilities 也没有声明 sqlserver 支持,
因此即使是空页签也不会渲染。

- dbx-drivers 新增 list_constraints,用一条 UNION ALL 查询汇总
  sys.key_constraints(PK/UNIQUE)、sys.foreign_keys(含引用库表列、
  ON UPDATE/DELETE 动作、is_not_trusted)、sys.check_constraints、
  sys.default_constraints;列名用 FOR XML PATH('') 聚合,兼容 SQL Server
  2008(无 STRING_AGG)
- list_constraints_core 增加 SQL Server 分支与链接服务器早退
- tableMetadataCapabilities 为 sqlserver 打开 constraints,前端显示「约束」页签
- 新增单测覆盖 SQL 形态与列名拆包,并补充前端能力断言

Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
2026-09-19 13:31:45 +08:00
ReadMe.md 1f43d184aa feat(sidebar): add nested virtual table groups with drag and batch move 2026-09-19 09:24:34 +08:00
zipg 8168114734 fix(ddl): honor database qualification settings 2026-09-18 17:34:40 +08:00
二丫讲梵 ff874e8af9 feat(editor): configurable default sort when opening tables 2026-09-18 13:37:33 +08:00
guan xin 6b81a98453 feat(dameng): show view validity and support recompilation 2026-09-17 19:30:44 +08:00
dienaso dd84e6c06a fix(grid): honor include-database-name setting in SQL extractors 2026-09-17 11:41:45 +08:00
U1 14bcde806f fix(sql): honor include-database-name setting for schema-aware engines 2026-09-15 13:28:40 +08:00
zipg 28e2568a8f fix(sql): keep required identifier quotes per dialect 2026-09-14 17:53:28 +08:00
zipg ae1da14ddf fix(grid): keep hiding xugu __DBX_ROWID after metadata loads 2026-09-14 12:39:42 +08:00
二丫讲梵 78a78cc209 fix(sidebar): keep table search pins across index rebuilds
Closes #8964
2026-09-13 23:30:58 +08:00
二丫讲梵 3767f4a83b feat(sqlite): support autoincrement primary key in structure editor 2026-09-13 02:11:17 +08:00
onenewcode 8ff56b4837 feat(mongodb): add Compass-style collection import/export 2026-09-12 21:59:29 +08:00
Tara 27f21d5cc4 feat(structure): geometry subtype and srid editor for postgres 2026-09-11 17:39:31 +08:00
二丫讲梵 3840426128 fix(table): keep mysql DEFAULT_GENERATED columns copyable 2026-09-11 12:06:23 +08:00
Eve 5b5d58cd2a fix(objects): preserve category filter per tab 2026-09-10 15:57:15 +08:00
Eve e17246c0f6 fix(structure): respect identifier quote preference 2026-09-10 13:14:19 +08:00
zipg b84d162049 fix(oracle): stop ROWID pagination injection on views 2026-09-09 22:35:51 +08:00
t8y2 3d450a42cc fix(sidebar): locate reloaded data tables
Closes #8413
2026-09-09 00:38:56 +08:00
Abeautifulsnow 8642e1a599 feat(object-browser): preserve object list on return via stale cache 2026-09-08 11:51:50 +08:00
Eve d0b9e49b7e fix(structure): load table comment on initial DDL tab 2026-09-08 11:48:59 +08:00
Elias 3e75be87eb fix(xugu): enable safe row editing without primary keys 2026-09-07 22:44:30 +08:00
二丫讲梵 2eaf7f9914 feat(editor): add toggle for SQL identifier quoting 2026-09-07 01:11:42 +08:00
Melody Ruch af32936297 fix(gbase): generate GBase 8s table DDL with Informix dialect 2026-09-04 16:48:35 +08:00
Tara 01623ab38d fix(postgres): keep index operator classes in read and generation
Closes #7166
2026-09-04 14:48:41 +08:00
Melody Ruch 06dcd0013c fix(mysql): show inherited charset and collation in structure editor 2026-09-04 09:48:41 +08:00
Melody Ruch aa637b2d90 fix(grid): keep filters when refreshing restored table tabs 2026-09-03 17:52:07 +08:00
zipg c99c0d932c fix(table): hide unsupported identity column for opengauss 2026-09-03 12:34:10 +08:00
Clarence 84669b0d1a fix(influxdb): gate quick-open rolling time window behind opt-in 2026-09-02 11:33:24 +08:00
Clarence 264f5c4836 feat(influxdb3): add influxdb 3 engine over http 2026-09-01 15:28:08 +08:00
wangfengxiang 2f71a1a8aa feat(argo): add argodb connection type with routine browsing 2026-09-01 00:21:10 +08:00
Elias a849979dd1 feat(xugu): discover and manage scheduler jobs 2026-08-31 14:03:34 +08:00
zipg 1c0e97b52a fix(oracle): quote routine parameter aliases 2026-08-31 12:31:44 +08:00
skyler de2c4b38cd fix(objects): render MySQL event create editor with fresh state 2026-08-30 09:58:45 +08:00
jearhe 508369ee39 fix(mysql): open editor when creating a new event 2026-08-30 00:47:21 +08:00
amwps290 20a2994fa1 feat(structure): show table constraints for postgres-compatible dbs 2026-08-28 12:14:04 +08:00
zipg 4fed29fba2 fix(structure): improve mysql auto-increment editing and field shortcuts 2026-08-27 18:21:52 +08:00
dadong dfd4d3b7ff feat(import): add SQL script import with dialect-aware parsing 2026-08-27 17:17:41 +08:00
zipg 60e3d61934 feat(mysql): 支持查看和修改表存储引擎 2026-08-26 11:05:08 +08:00
高瑞强 bfd7c7def2 feat(mongo): open object browser from database tree nodes 2026-08-25 22:15:40 +08:00
zipg 81c3cc15d2 fix(memory): release closed query and connection resources 2026-08-25 15:47:23 +08:00
t8y2 277386ec81 feat(mysql): edit table auto-increment counter
Closes #7065
2026-08-25 01:24:09 +00:00
zipg 7904231566 fix(kingbase): display char column lengths from bpchar metadata 2026-08-24 21:42:46 +08:00
lizzzzz777 80240d0ba6 feat(structure-editor): support ctrl/shift multi-select for columns 2026-08-24 13:08:36 +08:00
t8y2 3e9c383732 fix(oracle): prefer physical row identifiers over ROWID
Closes #6575
2026-08-23 22:53:52 +00:00
t8y2 72bb880ee7 fix(table-paste): surface first batch paste error
Closes #4832
2026-08-23 16:24:19 +00:00
miracle d8bc5153d2 feat(mysql): manage and edit MySQL events 2026-08-23 12:23:46 +08:00
zipg acc2137cde feat(postgres): support editing table owners 2026-08-23 01:39:23 +08:00
t8y2 a1e94d8228 feat(oracle): support adding primary keys to existing tables
Closes #6922
2026-08-22 12:24:02 +00:00
Tara bf029cd342 feat(postgres): support safe database renaming 2026-08-22 19:30:38 +08:00
二丫讲梵 a6f4cebd18 feat(editor): include database name in generated SQL 2026-08-22 13:40:42 +08:00