Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重構 db 統一操作 #77

Open
gibbs-shih opened this issue Aug 7, 2024 · 0 comments
Open

重構 db 統一操作 #77

gibbs-shih opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
8 enhancement New feature or request

Comments

@gibbs-shih
Copy link
Contributor

gibbs-shih commented Aug 7, 2024

根據 #76
目前容易會有多個不容易知道從哪處發生的資料庫連線問題
要好除錯的話需要

  1. 重構程式碼, 用db operator通一操作db, 容易除錯(singleton)
  2. 找出可能發生原因的地方做db例外處理

例:

CleanShot 2024-08-07 at 11 38 59

CleanShot 2024-08-06 at 12 18 23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant