Server: basic implementation. Not tested => no python installed; bugfix in ESP (uvicorn on port 8090)
This commit is contained in:
1 parent
3694cdf207
commit
8a51e3d95e
38 files changed
+2442
-21
No files matched your search
@@ -0,0 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Iterator
|
||||
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from ..db import SessionLocal
|
||||
|
||||
|
||||
def get_db() -> Iterator[Session]:
|
||||
with SessionLocal() as session:
|
||||
yield session
|
||||
Reference in new issue
Block a user