format
This commit is contained in:
parent
f42e8e4807
commit
841723103c
2 changed files with 0 additions and 4 deletions
|
|
@ -8,7 +8,6 @@ sqlite_url = f"sqlite:///{sqlite_file_name}"
|
||||||
|
|
||||||
@lru_cache
|
@lru_cache
|
||||||
def get_engine():
|
def get_engine():
|
||||||
|
|
||||||
engine = create_engine(sqlite_url)
|
engine = create_engine(sqlite_url)
|
||||||
SQLModel.metadata.create_all(engine)
|
SQLModel.metadata.create_all(engine)
|
||||||
return engine
|
return engine
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
|
|
||||||
from sqlmodel_base.database import get_engine
|
from sqlmodel_base.database import get_engine
|
||||||
|
|
@ -8,8 +7,6 @@ engine = get_engine()
|
||||||
|
|
||||||
hero_app = Hero.cli
|
hero_app = Hero.cli
|
||||||
console = Console()
|
console = Console()
|
||||||
|
|
||||||
|
|
||||||
# @hero_app.callback()
|
# @hero_app.callback()
|
||||||
# def hero():
|
# def hero():
|
||||||
# "model cli"
|
# "model cli"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue