请问数据库怎么制定
#515
Replies: 3 comments
-
|
你可以使用默认的sqlite数据库,也可以使用你想要使用的其他数据库。参考文档。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
pip install nonebot-plugin-orm[default] |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
sqlalchemy有自己的连接池,只需要管怎么定义模型然后写数据库会话就行了 Detailstip:讨论有结果请标记为 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ValueError: 必须指定一个默认数据库 (SQLALCHEMY_DATABASE_URL 或 SQLALCHEMY_BINDS[""]). 可以通过
pip install nonebot-plugin-orm[default]获得开箱即用的数据库配置.Beta Was this translation helpful? Give feedback.
All reactions