from abc import ABC, abstractmethod
[docs]
class ITransactional(ABC):
[docs]
@abstractmethod
def begin_transaction(self):
"""
Initiates a transaction for a series of vector store operations.
"""
pass
[docs]
@abstractmethod
def commit_transaction(self):
"""
Commits the current transaction, making all operations within the transaction permanent.
"""
pass
[docs]
@abstractmethod
def abort_transaction(self):
"""
Aborts the current transaction, reverting all operations performed within the transaction.
"""
pass