create databases directory on startup

This commit is contained in:
Lincoln Stein
2023-06-08 07:17:54 -04:00
parent 5f76b62553
commit 2a6d11e645
3 changed files with 3 additions and 7 deletions

View File

@ -57,6 +57,7 @@ class ApiDependencies:
# TODO: build a file/path manager?
db_location = config.db_path
db_location.parent.mkdir(parents=True,exist_ok=True)
graph_execution_manager = SqliteItemStorage[GraphExecutionState](
filename=db_location, table_name="graph_executions"