matrix-appservice-kakaotalk/matrix_appservice_kakaotalk/db/__init__.py

26 lines
470 B
Python
Raw Normal View History

2022-02-25 02:22:50 -05:00
from mautrix.util.async_db import Database
from .message import Message
from .portal import Portal
from .puppet import Puppet
from .reaction import Reaction
from .upgrade import upgrade_table
from .user import User
def init(db: Database) -> None:
for table in (Portal, Message, Reaction, User, Puppet):
table.db = db
__all__ = [
"upgrade_table",
"init",
"Message",
"Reaction",
"Portal",
"ThreadType",
"Puppet",
"User",
]