objectbox / objectbox/objectbox-java
DbExceptionListener for migration issues
未關閉
還沒有人認領這個 Issue。
enhancement
- 主要語言
- Java
- 星號
- 4.6k
- 分支
- 311
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi. Is possible to use new DbExceptionListener to handle migration issues and for example drop db?
I tried to add listener just after builder but it's too late and exception is thrown earlier.
I know that there shouldn't be any if everything is done correctly but in my case I can just drop db and recreate it with data from backend.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先追蹤 builder、DbExceptionListener 與 migration path 周邊的初始化流程,以找出在加入 listener 之前例外在哪裡引發。確認處理該 migration failure 時的預期行為,包括所要求的 drop-and-recreate flow;payload 未指定任何特定檔案或測試,因此完成條件需要由 maintainer 進一步釐清。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- databases
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100