zhaoqingang
2025-03-28 226202d6eee6480f3386c6295be26fad42940cc8
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()