MemoryUnitOfWork module (ska_db_oda.unit_of_work.memoryunitofwork)

This module contains the implementation of the AbstractUnitOfWork Class.

class ska_db_oda.unit_of_work.memoryunitofwork.MemoryUnitOfWork(session: MemorySession | None = None)[source]

A lightweight non-persistent implementation of the AbstractUnitOfWork that can store and retrieve SchedulingBlock objects.

Commits or rolls back a series of database transactions as an atomic operation. Changes between commits are tracked via the _transactions variable.

commit() None[source]

Implementation of the AbstractUnitOfWork method.

See commit() docstring for details

rollback() None[source]

Implementation of the AbstractUnitOfWork method.

See rollback() docstring for details