Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,23 @@ English | [中文](./README.md)
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](./LICENSE)
![Java 8+](https://img.shields.io/badge/Java-8%2B-blue)

[Website & demo](https://flydb.zzxcoding.dev) · [Download](https://github.com/zzxCoding/Flydb/releases/latest) · [GUI guide](./docs/getting-started/web.en.md) · [Agent setup](./flydb-skills/README.md) · [Documentation](./docs/getting-started/README.md)
[Website & demo](https://flydb.zzxcoding.dev) · [Download](https://github.com/zzxCoding/Flydb/releases/latest) · [Local workbench](./docs/getting-started/web.en.md) · [Team setup (Chinese)](./docs/getting-started/team-service.md) · [Agent setup](./flydb-skills/README.md) · [Documentation](./docs/getting-started/README.md)

Flydb helps developers and operators manage versioned database changes. Use the local GUI to organize configurations, review SQL and watch execution; use the CLI in scripts and CI; copy context to an Agent when you want help. All three entry points share the same configuration and migration engine, while the GUI and local CLI share execution records.
Flydb is an open-source tool for versioned database migrations. Review and run changes in the local workbench, or self-host the team service to grant access by environment and track changes submitted from the web, CI or an AI agent. Both modes use the same migration engine.

MySQL, PostgreSQL, Oracle and Chinese databases including OceanBase, TiDB, DM8, KingbaseES and openGauss. **Run with Java 8+; the GUI needs no Node.js, network access or language model.**
Flydb supports MySQL, PostgreSQL, Oracle, OceanBase, TiDB, DM8, KingbaseES and openGauss. **The CLI and local workbench support Java 8+. Opening the local workbench does not require Node.js, Internet access or a language model.**

![Flydb local workbench with environment groups, migration state and Agent handoff](./docs/assets/flydb-workbench.en.png)
*Actual workbench UI using fictional demonstration configurations and migration records.*

Use `flydb web` for the personal workbench. In 0.3.10, `flydb serve` starts the [online service edition](./docs/getting-started/team-service.md). Users can register in the browser and issue tokens for agents or CI. Administrators can grant environment access. The browser, remote MCP and the `flydb remote` CLI share releases and execution records.

## Choose how you work

| Your workflow | What Flydb provides |
|---|---|
| Manage development, staging and production configurations | Collapsible groups, drag-and-drop organization, forms and an advanced editor for the original files |
| Review an upgrade before applying it | SQL previews, version search, pagination, full-text search and complete SQL downloads |
| Follow execution and diagnose failures | Script progress, transaction outcomes and post-run verification; unknown outcomes stay explicit |
| Follow execution and diagnose failures | Open the latest migration report for each profile from the local sidebar; execution and post-run verification are shown separately |
| Share a release workflow with your team | Self-host `flydb serve` for environment-scoped access, SHA-256-pinned SQL artifacts and shared task reports across the web, remote CLI and remote MCP |
| Bring in an Agent | “Copy for Agent” packages redacted settings, migration state and recent errors; Skills, JSON and MCP offer further integration |
| Automate migrations in an application or pipeline | CLI for CI, a Java API and Spring Boot 2/3 starters sharing the same engine |

Expand Down Expand Up @@ -73,6 +72,12 @@ bin/flydb info

</details>

## Self-host team releases with `flydb serve`

Run the team service on a host that can connect to your target databases. Upload a SQL ZIP or edit a shared draft in the web UI, then publish a version pinned by its digest. Grant view, execute or manage access by environment and review the target, artifact digest and SQL plan before applying changes.

In CI, use `flydb remote` to upload, preview, apply and wait for verification. MCP-capable agents can connect to the same service. The web, remote CLI and remote MCP can open the same task report, subject to permissions. Keep organizational approvals in your existing CI or release platform. See the [team setup guide](./docs/getting-started/team-service.md) (in Chinese) for accounts, JDBC drivers and HTTPS reverse proxy setup.

## One migration engine across every entry point

- **Review before execution**: checksum validation, concurrency locks, transaction handling and failure blocking. Changes to configuration or scripts after a preview are rechecked.
Expand Down Expand Up @@ -104,6 +109,7 @@ See the [database getting-started guides](./docs/getting-started/README.md) for
- [x] **DX and machine contract**: `--json` machine-readable output, protocolVersion contract versioning, CI integration docs, an Agent Plugins 1.0 package (`v0.3.0`; package managers and a Docker image on demand)
- [x] **Agent distribution**: an MCP adapter (TypeScript, version-aware domain tools, writes unregistered by default) plus the Plan Artifact v1 plan digest; a built adapter ships in the CLI ZIP
- [x] **Local workbench**: multiple configurations, groups, migration previews, execution records and Agent handoff
- [x] **Self-hosted team releases**: versioned artifacts, environment permissions, remote CLI/MCP and post-run verification (0.3.10)
- [ ] **Brownfield change intelligence**: impact analysis, application reference scanning, coverage with explicit unknowns
- [ ] **Agent-safe change runtime**: plan validation, risk assessment, execution and verification with organizational approval handled externally

Expand Down
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](./LICENSE)
![Java 8+](https://img.shields.io/badge/Java-8%2B-blue)

[官网与演示](https://flydb.zzxcoding.dev) · [下载](https://github.com/zzxCoding/Flydb/releases/latest) · [GUI 上手](./docs/getting-started/web.md) · [Agent 接入](./flydb-skills/README.md) · [文档](./docs/getting-started/README.md)
[官网与演示](https://flydb.zzxcoding.dev) · [下载](https://github.com/zzxCoding/Flydb/releases/latest) · [本机工作台](./docs/getting-started/web.md) · [团队部署](./docs/getting-started/team-service.md) · [Agent 接入](./flydb-skills/README.md) · [文档](./docs/getting-started/README.md)

Flydb 是给开发、运维和实施人员使用的数据库版本迁移工具。用本机 GUI 管理多套配置、核对 SQL 和查看执行进度;用 CLI 接入脚本与 CI;有 Agent 时,一键复制上下文继续处理。三种入口使用同一份配置与迁移引擎,GUI 和同机 CLI 共用执行记录。
Flydb 是开源的数据库版本迁移工具。个人可以用本机工作台核对 SQL、执行迁移;团队可以自托管服务,按环境授权,从 Web、CI 或 Agent 提交和跟踪数据库变更。两种用法复用同一迁移引擎。

支持 MySQL、PostgreSQL、Oracle 及多种国产数据库;**Java 8+ 即可运行,GUI 无需 Node.js、外网或大模型**。
支持 MySQL、PostgreSQL、Oracle 及多种国产数据库;**CLI 与本机工作台支持 Java 8+;打开本机工作台不需要 Node.js、互联网或大模型。**

![Flydb 本机工作台:多环境分组、迁移状态与 Agent 交接](./docs/assets/flydb-workbench.png)
*实际工作台界面,使用虚构的演示配置与迁移记录。*
Expand All @@ -28,12 +28,11 @@ Flydb 是给开发、运维和实施人员使用的数据库版本迁移工具
|---|---|
| 管理多套开发、测试和生产配置 | 按分组折叠、拖拽整理;表单与高级文件编辑直接维护原配置 |
| 实施升级前核对变更 | 先预览 SQL;大量版本可搜索、分页,大 SQL 可全文查找与完整下载 |
| 跟踪执行、排查失败 | 查看脚本进度、事务结果与执行后核验;保留记录,不把未知结果当成成功 |
| 跟踪执行、排查失败 | 本机侧栏按配置显示最近一次迁移,点击直达报告;执行结果与执行后核验分开显示 |
| 团队共用数据库发布流程 | 自托管 `flydb serve`,通过环境权限和带 SHA-256 的 SQL 制品,让 Web、远程 CLI 和远程 MCP 共用任务与核验结果 |
| 让 Agent 接着处理 | “复制给 Agent”整理脱敏配置、迁移状态和最近错误;也可通过 Skill、JSON 与 MCP 接入 |
| 在应用或流水线里自动迁移 | CLI 适配 CI,Java API 与 Spring Boot 2/3 starter 复用同一迁移引擎 |

个人版用 `flydb web` 打开本机项目。0.3.10 新增[在线服务版](./docs/getting-started/team-service.md),用 `flydb serve` 从浏览器注册账号、分配环境权限、为 Agent 和流水线签发访问凭据。浏览器、远程 MCP 和流水线命令 `flydb remote` 共用服务端版本与执行记录。

## 一条命令打开 GUI

从 [Releases](https://github.com/zzxCoding/Flydb/releases/latest) 下载 ZIP,解压后运行:
Expand Down Expand Up @@ -73,7 +72,13 @@ bin/flydb info

</details>

## 迁移能力,贯穿三种入口
## 团队共享发布:`flydb serve`

在能连接目标数据库的执行机上部署团队服务。通过 Web 上传 SQL ZIP 或编辑共享草稿,将其发布为由摘要固定的版本。环境权限区分查看、执行和管理;操作人员可以在执行前核对目标、制品摘要和 SQL 计划。

流水线可用 `flydb remote` 上传、预演、确认执行和等待核验;支持 MCP 的 Agent 可接入同一个服务。Web、远程 CLI 和远程 MCP 按权限查看同一任务编号的报告。已有组织审批流程可继续放在 CI 或发布平台。远程部署所需的账号、JDBC 驱动和 HTTPS 反向代理见[团队部署指南](./docs/getting-started/team-service.md)。

## 各入口共用的迁移能力

- **先核对,再执行**:checksum 校验、并发锁、事务处理与失败阻断;预览后配置或脚本发生变化时重新核验。
- **适应现有部署环境**:Java 8 零第三方运行时依赖内核,独立 CLI 发行包,以及 Spring Boot 2/3 starter。
Expand Down Expand Up @@ -104,6 +109,7 @@ Flydb 管理迁移流程与数据库方言行为,不会把任意厂商 SQL 自
- [x] **开发体验与机器契约**:`--json` 机器输出、protocolVersion 契约版本化、CI 接入文档、Agent Plugins 1.0 插件包(`v0.3.0`;包管理器与 Docker 镜像按需启动)
- [x] **Agent 分发**:MCP 适配(TypeScript Adapter,按 CLI 版本注册领域工具,写入默认不注册)与 Plan Artifact v1 计划摘要;CLI ZIP 内附已构建 Adapter
- [x] **本机图形工作台**:多配置、分组、迁移预览、执行记录与 Agent 上下文交接
- [x] **自托管团队发布**:版本库、环境权限、远程 CLI/MCP 和执行后核验(0.3.10)
- [ ] **存量变更智能**:影响分析、应用引用扫描、覆盖率与未知项标注
- [ ] **Agent 安全变更运行时**:计划核对、风险评估、执行与核验。组织审批交给外部平台

Expand Down
Loading