2023-01-11 13:04:19 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
@File : __init__.py.py
|
|
|
|
@Author : Shuaikang Zhou
|
|
|
|
@Time : 2023/1/5 0:10
|
|
|
|
@IDE : Pycharm
|
|
|
|
@Version : Python3.10
|
|
|
|
@comment : ···
|
|
|
|
"""
|
2023-12-01 22:37:45 +08:00
|
|
|
from .hard_link import HardLink
|
|
|
|
from .micro_msg import MicroMsg
|
2023-12-12 01:17:21 +08:00
|
|
|
from .media_msg import MediaMsg
|
2023-12-01 22:37:45 +08:00
|
|
|
from .misc import Misc
|
|
|
|
from .msg import Msg
|
2023-12-03 21:25:50 +08:00
|
|
|
from .msg import MsgType
|
2023-12-16 20:06:43 +08:00
|
|
|
|
2023-12-01 22:37:45 +08:00
|
|
|
misc_db = Misc()
|
|
|
|
msg_db = Msg()
|
|
|
|
micro_msg_db = MicroMsg()
|
|
|
|
hard_link_db = HardLink()
|
2023-12-12 01:17:21 +08:00
|
|
|
media_msg_db = MediaMsg()
|
2023-12-16 20:06:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
def close_db():
|
|
|
|
misc_db.close()
|
|
|
|
msg_db.close()
|
|
|
|
micro_msg_db.close()
|
|
|
|
hard_link_db.close()
|
|
|
|
media_msg_db.close()
|
|
|
|
|
|
|
|
|
2023-12-17 13:15:49 +08:00
|
|
|
def init_db():
|
|
|
|
misc_db.init_database()
|
|
|
|
msg_db.init_database()
|
|
|
|
micro_msg_db.init_database()
|
|
|
|
hard_link_db.init_database()
|
|
|
|
media_msg_db.init_database()
|
|
|
|
|
|
|
|
|
2023-12-16 20:06:43 +08:00
|
|
|
__all__ = ['output', 'misc_db', 'micro_msg_db', 'msg_db', 'hard_link_db', 'MsgType', "media_msg_db"]
|