import traceback
from contextlib import contextmanager

from sqlmodel import create_engine, Session

from fastapi_dream_core.application_dependencies.application_dependencies_abc import ApplicationDependenciesABC
from fastapi_dream_core.utils import logger


class DatabaseSQLModel(ApplicationDependenciesABC):

    def __init__(self, db_url: str, echo_queries: bool = False) -> None:
        self._engine = 