db
get_db_session()
¶
Creates and provides a database session.
This function is designed to yield a database session for interacting with the database. The session is created using the given database engine and is managed within a context to ensure proper cleanup after usage.
Returns:
Type | Description |
---|---|
Session
|
Yields database session objects. |