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

为 AliceBot 生态添加 ORM 支持 #124

Open
2 tasks
st1020 opened this issue May 21, 2024 · 0 comments
Open
2 tasks

为 AliceBot 生态添加 ORM 支持 #124

st1020 opened this issue May 21, 2024 · 0 comments

Comments

@st1020
Copy link
Member

st1020 commented May 21, 2024

对于一个足够完整的项目而言,访问数据库是一个十分常见的需求。但是目前 AliceBot 并没有任何针对特定 ORM 框架的特别支持。

此 issue 用于跟踪 AliceBot 与 ORM 集成的进度。

关于集成 ORM 的选择,我的初步的想法是,ORM 需要满足以下条件:

  1. 在 Python 生态中足够流行
  2. 能够与 Pydantic 有良好的集成
  3. 支持 async
  4. 类型安全
  5. 具有成熟的生态

在现有的 ORM 中,基本符合上述条件的有:

暂定准备支持以下 ORM:

  • Prisma Client Python
  • SQLModel (SQLAlchemy)
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