Files
classquiz-ai/classquiz/db/__init__.py
T
2022-07-02 17:20:55 +02:00

14 lines
382 B
Python

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import databases
import sqlalchemy
from classquiz.config import settings
settings = settings()
database = databases.Database(settings.db_url)
metadata = sqlalchemy.MetaData()