UnitOfWork
Bases: Protocol
Unit of Work protocol defining the interface for a unit of work implementation.
Source code in src/alpha/interfaces/unit_of_work.py
session
property
Get the current session.
| Returns: |
|
|---|
Methods:
__enter__
Enter the runtime context related to this object.
| Returns: |
|
|---|
__exit__
commit
flush
rollback
refresh
Refresh the state of the given object from the database.
| Parameters: |
|
|---|