This commit is contained in:
cash
2026-03-29 23:50:49 -05:00
commit eb5e194331
56 changed files with 4010 additions and 0 deletions

14
backend/core/db_cache.py Normal file
View File

@@ -0,0 +1,14 @@
"""
compat layer - exposes getconn used by older code
"""
from contextlib import contextmanager
from backend.core.db import engine
@contextmanager
def getconn():
conn = engine.raw_connection()
try:
yield conn
finally:
conn.commit()
conn.close()