Skip to content

Class swarmauri_core.utils.ITransactional.ITransactional

swarmauri_core.utils.ITransactional.ITransactional

Bases: ABC

begin_transaction abstractmethod

begin_transaction()

Initiates a transaction for a series of vector store operations.

Source code in swarmauri_core/utils/ITransactional.py
 5
 6
 7
 8
 9
10
@abstractmethod
def begin_transaction(self):
    """
    Initiates a transaction for a series of vector store operations.
    """
    pass

commit_transaction abstractmethod

commit_transaction()

Commits the current transaction, making all operations within the transaction permanent.

Source code in swarmauri_core/utils/ITransactional.py
12
13
14
15
16
17
@abstractmethod
def commit_transaction(self):
    """
    Commits the current transaction, making all operations within the transaction permanent.
    """
    pass

abort_transaction abstractmethod

abort_transaction()

Aborts the current transaction, reverting all operations performed within the transaction.

Source code in swarmauri_core/utils/ITransactional.py
19
20
21
22
23
24
@abstractmethod
def abort_transaction(self):
    """
    Aborts the current transaction, reverting all operations performed within the transaction.
    """
    pass