nonebot-session-to-uninfo
nonebot-plugin-session-orm 到 nonebot-plugin-uninfo 的数据库迁移脚本
使用方式
如果你的项目的数据库用到了 nonebot-plugin-session-orm,并且希望迁移到 nonebot-plugin-uninfo,本脚本可以帮助迁移
本脚本提供了 check_tables get_id_map 方法,可以在迁移脚本中调用。
check_tables 用于检查 session-orm 和 uninfo 插件的表是否均已创建,
并创建 nonebot_session_to_uninfo_id_map 表,用于记录 session-orm 和 uninfo 插件 的 session_persist_id 的对应关系。
get_id_map 用于获取 session_persist_id 的对应关系字典,传入 session-orm 插件的 session_persist_id 列表,
返回 session-orm 到 uninfo 的 session_persist_id 对应关系字典。
具体使用方式可以参考 60dbbe448c16_data_migrate.py
Metadata
Release files for nonebot_session_to_uninfo 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_session_to_uninfo-0.0.2.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_session_to_uninfo-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / nonebot_session_to_uninfo-0.0.2.tar.gz
| Download URL | nonebot_session_to_uninfo-0.0.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10d3540fa85293cdd669065cb3898f07af625e2a640a2ab2fa0360a444eef3ab
|
|
BLAKE2b-256 checksum How to use checksums |
09044ebea55a53c507195c1cf923d31897ef7ab8b7b49532406b2419f61342f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.11.0 Linux/6.5.0-1025-azure
|
Release files / nonebot_session_to_uninfo-0.0.2-py3-none-any.whl
| Download URL | nonebot_session_to_uninfo-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6639f252f371ee50f414904011757f480916a771f2cea8dcf5bc24792b168330
|
|
BLAKE2b-256 checksum How to use checksums |
2eeaf9e31d29facf907f96aad32ac184b879a6a80d3f4f43437c735a425e26b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.11.0 Linux/6.5.0-1025-azure
|