Skip to content

feat: add MySQL 8.4 storage backend - #22

Merged
Command1264 merged 2 commits into
developfrom
codex/feat/mysql-storage
Sep 23, 2026
Merged

Command1264 merged 2 commits into
developfrom
codex/feat/mysql-storage

Conversation

@Command1264

Copy link
Copy Markdown
Owner

MySQL 8.4 儲存 adapter 現可在既有且完全空白的 database 首次啟動時自動建立 schema,後續啟動驗證版本與結構;建表中斷時只在已建立的表通過檢查後續跑。Claim 使用資料庫唯一約束與交易維持併發正確性。MySQL 密碼可在 storage.yml 直接設定,或使用 ${ENV_VAR};防濫用密鑰仍由環境變數提供,錯誤訊息不回顯密碼。

此 PR 加入 MySQL 8.4 的 CI 整合測試、設定與復原文件,並保留 SQLite 與 Java 8 相容性。JSON、SQLite 與 MySQL 之間的資料搬移不在此範圍。

驗證:使用隔離的 MySQL 8.4.11,Java 8 與 Java 11 的 check shadowJar 均通過;共 203 項測試通過,涵蓋共用儲存契約、首次初始化/中斷續跑、雙實例競爭 Claim、連線池耗盡與兩種密碼設定。真人玩家操作依既定計畫留待發行前集中驗收。

Closes #6

@Command1264
Command1264 merged commit a6c5f93 into develop Sep 23, 2026
5 checks passed
@Command1264
Command1264 deleted the codex/feat/mysql-storage branch September 23, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant