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

使用Tortoise ORM替代SQLAlchemy #1510

Open
5 tasks
Tracked by #1458
OasisAkari opened this issue Dec 27, 2024 · 0 comments
Open
5 tasks
Tracked by #1458

使用Tortoise ORM替代SQLAlchemy #1510

OasisAkari opened this issue Dec 27, 2024 · 0 comments

Comments

@OasisAkari
Copy link
Member

OasisAkari commented Dec 27, 2024

Todo List:

  • 将 BotDBUtil 内有意义的工具函数移植至 database_v2.models 中(若只是简单的 get value 等操作则应改写原先对应的代码而非再增加没有太多作用的内容)
  • 将对应的使用到 BotDBUtil 的代码重写
  • 将数据库升级函数对应代码重写,增加新的版本进行数据迁移
  • 移除旧的BotDBUtil,将database_v2 重命名回 database
  • 一并重构模块内使用到SQLAlchemy ORM 的部分
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

No branches or pull requests

1 participant