xuyonghao
2025-02-10 2ab8a0e98c782a55c69a22d4b49bf294b8cfc2d9
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()