将 Bedrock 存储切换为数据库原生驱动 #25

Open
codex-bot wants to merge 2 commits from codex/sql-persistence into main
Collaborator

改动

  • SQLite 改用 rusqlite,并把同步读写放到专用线程。
  • PostgreSQL 改用 tokio-postgres、连接池和缓存预编译语句。
  • MySQL 改用 mysql_async,延续租约、写入隔离和部署清理逻辑。
  • 沿用现有表结构和文档编码,并保留主库与读副本路由。

验证

在 ces-control 手动运行了工作区测试和 SQLite 默认启动检查,共通过 5 个测试。发布版构建成功。PostgreSQL 和 MySQL 的 8 个 TLS 用例均通过,覆盖可信证书、只读连接、主机名不匹配和不受信任的证书。验证环境已清理。

Address 调试输出

Address 的 Debug 直接格式化底层字符串。包含密码的连接串也会完整显示。已在 ces-control 手动运行 cargo test --locked -p clusters,两个测试均通过。

等待用户手动合并。

## 改动 - SQLite 改用 rusqlite,并把同步读写放到专用线程。 - PostgreSQL 改用 tokio-postgres、连接池和缓存预编译语句。 - MySQL 改用 mysql_async,延续租约、写入隔离和部署清理逻辑。 - 沿用现有表结构和文档编码,并保留主库与读副本路由。 ## 验证 在 ces-control 手动运行了工作区测试和 SQLite 默认启动检查,共通过 5 个测试。发布版构建成功。PostgreSQL 和 MySQL 的 8 个 TLS 用例均通过,覆盖可信证书、只读连接、主机名不匹配和不受信任的证书。验证环境已清理。 ## Address 调试输出 Address 的 `Debug` 直接格式化底层字符串。包含密码的连接串也会完整显示。已在 ces-control 手动运行 `cargo test --locked -p clusters`,两个测试均通过。 等待用户手动合并。
codex-bot added 1 commit 2026-11-29 23:11:56 +00:00
codex-bot added 1 commit 2026-11-29 23:37:17 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin codex/sql-persistence:codex/sql-persistence
git checkout codex/sql-persistence
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Zayden-Jung/Bedrock#25