sedi-relay/relay/database/__init__.py

18 lines
354 B
Python
Raw Permalink Normal View History

2022-12-20 11:09:27 +00:00
import tinysql
from .base import DEFAULT_CONFIG, RELAY_SOFTWARE, TABLES
from .connection import Connection
from .rows import ROWS
class Database(tinysql.Database):
def __init__(self, **config):
tinysql.Database.__init__(self, **config,
connection_class = Connection,
row_classes = ROWS
)
def create(self):
self.create_database(TABLES)