Skip to content

Commit

Permalink
用单例实现数据库操作,弃用全局变量
Browse files Browse the repository at this point in the history
  • Loading branch information
LC044 committed Dec 1, 2023
1 parent 8dd80d7 commit c713c59
Show file tree
Hide file tree
Showing 17 changed files with 462 additions and 306 deletions.
3 changes: 0 additions & 3 deletions .idea/WeChatMsg.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 72 additions & 51 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion app/DataBase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
@Version : Python3.10
@comment : ···
"""
from .hard_link import HardLink
from .micro_msg import MicroMsg
# from . import data
# from . import output
from .misc import Misc
from .msg import Msg

__all__ = ["data", 'output']
misc_db = Misc()
msg_db = Msg()
micro_msg_db = MicroMsg()
hard_link_db = HardLink()
__all__ = ["data", 'output', 'misc_db', 'micro_msg_db', 'msg_db', 'hard_link_db']
Loading

0 comments on commit c713c59

Please sign in to comment.