dubswayAgenticV2 / app /testdb.py
peace2024's picture
Upload 23 files
6d01d5b
# test_db.py
from app.database import engine
from sqlalchemy import text
import asyncio
async def test_connection():
async with engine.connect() as conn:
result = await conn.execute(text("SELECT 1"))
print("DB Connection OK:", result.scalar())
asyncio.run(test_connection())