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 对应关系字典。

具体使用方式可以参考 0be9a1f9a444_fill_uninfo_id.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.1.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.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nonebot_session_to_uninfo-0.0.1.tar.gz
Algorithm Hash digest
SHA256 06a2e42fc38d8c5c23454cb1b67ffabc2395d760e7ea5e93047c8ca65245e818
MD5 dc840b707fc9d964411c3772504deed7
BLAKE2b-256 385cfb181430d2b85df1b023707da0a9be9a8cb64857e808a5b4afdb0bc3a365

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_session_to_uninfo-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd4f18b2c865c25d7a0bafaebc18dc3bcf8d4bac2c8306a7b8e90d68959ccae3
MD5 eec481a36ee208a76379f748a8833b58
BLAKE2b-256 54421f6b816a5e9cbd108db6f6d9aa2d41983e3540c368f5a4fac0d9ba8e5a67

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