Skip to content

Commit 488f955

Browse files
committed
feat: make get_session function public
1 parent fef16f5 commit 488f955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/db/deps.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from src.db import ENGINE
77

88

9-
def __get_session() -> Generator[__Session, None, None]:
9+
def get_session() -> Generator[__Session, None, None]:
1010
session = __Session(ENGINE)
1111
try:
1212
yield session
@@ -17,4 +17,4 @@ def __get_session() -> Generator[__Session, None, None]:
1717
session.close()
1818

1919

20-
Session = Annotated[__Session, Depends(__get_session)]
20+
Session = Annotated[__Session, Depends(get_session)]

0 commit comments

Comments
 (0)