yasuki_core.database.get_db_connection#

get_db_connection()[source]#

Context manager for database connections from the pool.

Initializes the pool on first use if it has not been opened yet.

Yields:
connpsycopg.Connection

Database connection with autocommit enabled and dict_row factory