diff --git a/sqlmodel_base/database.py b/sqlmodel_base/database.py index 96e1617..13f8dbc 100644 --- a/sqlmodel_base/database.py +++ b/sqlmodel_base/database.py @@ -8,7 +8,6 @@ sqlite_url = f"sqlite:///{sqlite_file_name}" @lru_cache def get_engine(): - engine = create_engine(sqlite_url) SQLModel.metadata.create_all(engine) return engine diff --git a/sqlmodel_base/hero/cli.py b/sqlmodel_base/hero/cli.py index 123b337..784edef 100644 --- a/sqlmodel_base/hero/cli.py +++ b/sqlmodel_base/hero/cli.py @@ -1,4 +1,3 @@ - from rich.console import Console from sqlmodel_base.database import get_engine @@ -8,8 +7,6 @@ engine = get_engine() hero_app = Hero.cli console = Console() - - # @hero_app.callback() # def hero(): # "model cli"