Skip to content

为 AliceBot 生态添加 ORM 支持 #124

@st1020

Description

@st1020

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

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

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

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

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

暂定准备支持以下 ORM:

  • Prisma Client Python
  • SQLModel (SQLAlchemy)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions