Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/hunvreus/devpush
/ get_db
Function
get_db
app/db.py:29–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
28
29
async
def
get_db():
30
async
with
AsyncSessionLocal()
as
session:
31
try
:
32
yield
session
33
await session.commit()
34
except
Exception:
35
await session.rollback()
36
raise
37
finally:
38
await session.close()
Callers
nothing calls this directly
Calls
1
rollback
Method · 0.80
Tested by
no test coverage detected