Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for get_database (0.05 sec)

  1. docs/en/docs/release-notes.md

    Dependencies with `yield` can now catch `HTTPException` and custom exceptions. For example:
    
    ```Python
    async def get_database():
        with Session() as session:
            try:
                yield session
            except HTTPException:
                session.rollback()
                raise
            finally:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top