xierxierx1 commented on Nov 3, 2024 xierxierx1 on Nov 3, 2024 Author 重装完数据库 重装了下python变成这样了 ProgramRipper commented on Nov 13, 2024 ProgramRipper on Nov 13, 2024 Member 请确认你是否启用了插件 https://github.com/ALittleBot/nonebot-plugin-fishing ProgramRipperclosed this ...
本插件使用了官方推荐的`nonebot-plugin-orm`插件操作数据库,安装插件或更新插件版本后,在启动机器人前,都需要执行此命令。 ```shell nb orm upgrade ``` 手动执行下列命令检查数据库模式是否与模型定义一致。机器人启动前也会自动运行此命令,并在检查失败时阻止启动。
DB_URL 是基于 Tortoise ORM 的数据库连接字符串,用于指定项目所使用的数据库。以下是 DB_URL 的组成部分以及示例: 格式为:<数据库类型>://<用户名>:<密码>@<主机>:<端口>/<数据库名>?<参数> 数据库类型:表示数据库类型,例如 postgres、mysql、sqlite 等。
SQLAlchemy support for NoneBot2. Contribute to nonebot/plugin-orm development by creating an account on GitHub.
github-actions released this 18 Jul 11:21 v0.7.5 8468906 What's Changed 🐛 fix(alembic): revision default args 🐛 fix(alembic): editable check in Python 3.9 Full Changelog: v0.7.4...v0.7.5Assets 4 nonebot_plugin_orm-0.7.5-py3-none-any.whl 32.1 KB 2024-07-18T11:21:50Z ...
plugin-orm/nonebot_plugin_orm/templates/multidb/env.py Lines 130 to 133 inef116c4 withsuppress(RuntimeError): asyncio.run(coro) await_only(coro) 改写成 https://github.com/nonebot/plugin-orm/blob/ef116c4e33a9d7299c1a12340aa79313acea3780/nonebot_plugin_orm/templates/generic/env.py#L87-90...
feat: 迁移 datastore 中的数据 by@MeetWqin#30 Warning 本次更新将数据库插件由nonebot-plugin-datastore迁移至nonebot-plugin-orm 若希望保留之前的数据,需要确保同时安装nonebot-plugin-datastore和nonebot-plugin-orm,并运行nb orm upgrade进行迁移 若迁移之前插件不是最新版本(v0.4.2版),需要首先升级至v0.4.2版...
虽然但是,你为什么把数据库ip port user password都写在插件里了这是很危险的事情建议立即删库跑路(,在插件里你可以使用 plugin-orm 之类的插件将数据存储在用户本地数据库内。 noneflowadded a commit that references this issue on Mar 11, 2024 🍻 publish plugin 100orangejuice (#2600) b3400d9 GLDYM...
[project] name = "nonebot-plugin-lxns-maimai" version = "0.1.2" description = "maimai DX 查分" authors = [ {name = "KomoriDev", email = "mute231010@gmail.com"}, ] dependencies = [ "nonebot2>=2.3.3", "httpx>=0.27.0", "nonebot-plugin-alconna>=0.52.0", "nonebot-plugin-orm>=...
nb orm downgrade nonebot_plugin_wordcloud@base # 降级数据库,删除数据 此插件从 0.1.5 版本开始使用 tortoise-orm 对数据库进行管理,移除对 nonebot-plugin-orm 的依赖。才不是因为 plugin-orm 的文档不全呢(x) 🎉 使用 💡 数据来源 和风天气 中国气象局 插件配置 🔧 请在你的 bot 根目录下的.env ...