minos.saga.executions.repositories.database.factories

Classes

SagaExecutionDatabaseOperationFactory

Saga Execution Database Operation Factory class.

class SagaExecutionDatabaseOperationFactory[source]

Bases: DatabaseOperationFactory, ABC

Saga Execution Database Operation Factory class.

abstract build_store(uuid, **kwargs)[source]

Build the database operation to store a saga execution.

Parameters
  • uuid (UUID) – The identifier of the saga execution.

  • kwargs – The attributes of the saga execution.

Returns

A DatabaseOperation instance.

Return type

DatabaseOperation

abstract build_load(uuid)[source]

Build the database operation to load a saga execution.

Parameters

uuid (UUID) – The identifier of the saga execution.

Returns

A DatabaseOperation instance.

Return type

DatabaseOperation

abstract build_delete(uuid)[source]

Build the database operation to delete a saga execution.

Parameters

uuid (UUID) – The identifier of the saga execution.

Returns

A DatabaseOperation instance.

Return type

DatabaseOperation