feat(export): include triggers and events in database export

This commit is contained in:
zipg authored and GitHub committed 2026-09-22 11:51:49 +08:00
1 parent e639ee51d6
commit 5301607388
4 files changed
+191 -12

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ description: 将一个或多个数据库的结构、数据和可读取对象流
| --- | --- |
| 表结构 | `CREATE TABLE`、字段、主键、索引、约束以及驱动可读取的 DDL |
| 表数据 | 按批读取并生成 `INSERT` 语句,不需要先把整表加载到内存 |
| 数据库对象 | 视图、序列、扩展、存储过程和函数等;具体范围取决于数据库和源码可见性 |
| 数据库对象 | 视图、序列、扩展、存储过程、函数、触发器、事件等;具体范围取决于数据库和源码可见性 |
| 创建数据库 | MySQL 可选生成 `CREATE DATABASE IF NOT EXISTS` 和 `USE` 前导脚本 |
| 导入辅助语句 | 根据引擎生成外键检查、identity 写入、例程分隔符等必要的 setup/收尾语句 |
+1 -1
View File
@@ -13,7 +13,7 @@ Database Export creates reviewable SQL scripts for small backups, migrations, te
| --- | --- |
| Table structure | `CREATE TABLE`, columns, primary keys, indexes, constraints, and other DDL visible through the driver |
| Table data | Rows read in batches and written as `INSERT` statements without loading the entire table first |
| Database objects | Views, sequences, extensions, procedures, and functions where the engine exposes readable definitions |
| Database objects | Views, sequences, extensions, procedures, functions, triggers, and events where the engine exposes readable definitions |
| Database creation | Optional MySQL `CREATE DATABASE IF NOT EXISTS` and `USE` preamble |
| Import helpers | Engine-specific setup and cleanup for foreign-key checks, identity writes, routine delimiters, and similar requirements |