Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Reporting (0.14 sec)

  1. docs/en/docs/tutorial/sql-databases.md

    But once we create an instance of the `SessionLocal` class, this instance will be the actual database session.
    
    We name it `SessionLocal` to distinguish it from the `Session` we are importing from SQLAlchemy.
    
    We will use `Session` (the one imported from SQLAlchemy) later.
    
    To create the `SessionLocal` class, use the function `sessionmaker`:
    
    ```Python hl_lines="11"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top