zhaoqingang
2025-04-11 e078028f1a8da34f3cc2cb5095b8e103a996f553
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()