zhaoqingang
2025-02-13 7fe860b099414a519b72a64115b7446c1548bdaa
app/models/postgresql_base_model.py
@@ -14,4 +14,8 @@
async def get_pdb() -> AsyncSession:
    async with PostgresqlSessionLocal() as session:
        yield session
        # yield session
        try:
            yield session
        finally:
            session.close()