Skip to content

OceanBase Oracle 导出表结构时附带完整触发器 - #11538

Closed
efeire wants to merge 13 commits into
t8y2:mainfrom
efeire:feat/11429-ob-trigger-ddl
Closed

efeire wants to merge 13 commits into
t8y2:mainfrom
efeire:feat/11429-ob-trigger-ddl

Conversation

@efeire

@efeire efeire commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refs #11429。依赖 #11483。表 DDL 导出附带当前账号可见的完整触发器,保留真实 owner、WHEN/REFERENCING、多行 body、独立 / 分隔符和启停状态;读取缺失、身份不符或状态未知时阻断部分导出。同步 owner 协议,并修正 Oracle Go 的精确对象身份和固定会话默认 schema。

表 DDL → 按 owner/name 排序的触发器 → 独立状态语句

Evidence

Before: 导出带触发器的表结构,旧脚本缺完整触发器源码、真实 owner 和启停状态,无法按范围重建。

After: 前端身份/导出 29 项、同内容 Go 全包与六项定向回归通过。真实目标 schema 重建后的完整触发器字典/行为、普通权限、GUI 保存及原生 Oracle 尚未验证,单测不证明导出脚本可实际重建。

Merge Danger

Door: two-way(代码)

Blast Radius: 表导出

代码可回退。本票只读导出,不自动执行脚本;脚本另行执行后的 DDL 需单独恢复。影响触发器协议、导出消费及 Oracle Go 元数据身份,Core、Agent、前端需配套。

自动化状态与界面预览

自动预览只代表对应提交和沙盒场景,不能替代目标数据库的实库验收。

界面预览

当前提交的自动预览记录。以下沙盒截图/录屏展示相关界面,不能代替目标数据库验收;实际测试结果与未验范围见Evidence。

播放录屏
▶️ 点图打开录屏(可暂停、拖动)· 直接下载 mp4 · 红线是鼠标轨迹,红色圆环是点击

github-actions Bot added a commit that referenced this pull request Oct 9, 2026
@efeire
efeire deployed to ui-preview October 9, 2026 18:23 — with GitHub Actions Active
@efeire efeire changed the title OceanBase Oracle 表 DDL 导出完整触发器及真实属主 OceanBase Oracle 导出表结构时附带完整触发器 Oct 9, 2026
github-actions Bot added a commit that referenced this pull request Oct 9, 2026
@efeire
efeire marked this pull request as ready for review October 10, 2026 06:56
@github-actions

Copy link
Copy Markdown
Contributor

🌐 I18n autofill completed

✅ Added translations for 2 new zh-CN i18n keys.

Locale Added entries
es 2
it 2
ja 2
ko 2
pt-BR 2
ru 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/multiple Touches more than three repository areas db/multiple Touches more than three database integrations ui-change Changes user-visible interface, text, or visual assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant