Skip to main content

session 插件到 uninfo 插件的 orm 迁移工具

Project description

nonebot-session-to-uninfo

nonebot-plugin-session-ormnonebot-plugin-uninfo 的数据库迁移脚本

使用方式

如果你的项目的数据库用到了 nonebot-plugin-session-orm,并且希望迁移到 nonebot-plugin-uninfo,本脚本可以帮助迁移

本脚本提供了 check_tables get_id_map 方法,可以在迁移脚本中调用。

check_tables 用于检查 session-ormuninfo 插件的表是否均已创建, 并创建 nonebot_session_to_uninfo_id_map 表,用于记录 session-ormuninfo 插件 的 session_persist_id 的对应关系。

get_id_map 用于获取 session_persist_id 的对应关系字典,传入 session-orm 插件的 session_persist_id 列表, 返回 session-ormuninfosession_persist_id 对应关系字典。

具体使用方式可以参考 60dbbe448c16_data_migrate.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_session_to_uninfo-0.0.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_session_to_uninfo-0.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_session_to_uninfo-0.0.2.tar.gz.

File metadata

  • Download URL: nonebot_session_to_uninfo-0.0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.0 Linux/6.5.0-1025-azure

File hashes

Hashes for nonebot_session_to_uninfo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 10d3540fa85293cdd669065cb3898f07af625e2a640a2ab2fa0360a444eef3ab
MD5 37e3513eb1d0c2bd782f486d83f26048
BLAKE2b-256 09044ebea55a53c507195c1cf923d31897ef7ab8b7b49532406b2419f61342f9

See more details on using hashes here.

File details

Details for the file nonebot_session_to_uninfo-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_session_to_uninfo-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6639f252f371ee50f414904011757f480916a771f2cea8dcf5bc24792b168330
MD5 6ea72f0e1dfd793ddae2a143c202cb23
BLAKE2b-256 2eeaf9e31d29facf907f96aad32ac184b879a6a80d3f4f43437c735a425e26b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page