commit
¤
Mixins for committing transactions to the Fluree ledger.
Classes:
-
AsyncCommitMixin–Asynchronous commit functionality for Fluree transactions.
-
CommitMixin–Synchronous commit functionality for Fluree transactions.
-
CommitableMixin–Combines synchronous and asynchronous commit capabilities.
AsyncCommitMixin
¤
Bases: SupportsAsyncCommit, Generic[T]
Asynchronous commit functionality for Fluree transactions.
Methods:
-
acommit–Executes the transaction asynchronously.
acommit
async
¤
acommit() -> FlureeResponse
Executes the transaction asynchronously.
Raises:
-
RequestError–If the HTTP request fails.
-
TypeError–If the type parameter cannot be resolved.
CommitMixin
¤
Bases: SupportsCommit, Generic[T]
Synchronous commit functionality for Fluree transactions.
Methods:
-
commit–Executes the transaction synchronously.
commit
¤
commit() -> FlureeResponse
Executes the transaction synchronously.
Raises:
-
RequestError–If the HTTP request fails.
-
TypeError–If the type parameter cannot be resolved.
CommitableMixin
¤
Bases: CommitMixin[T], AsyncCommitMixin[T], Generic[T]
Combines synchronous and asynchronous commit capabilities.
Methods:
acommit
async
¤
acommit() -> FlureeResponse
Executes the transaction asynchronously.
Raises:
-
RequestError–If the HTTP request fails.
-
TypeError–If the type parameter cannot be resolved.
commit
¤
commit() -> FlureeResponse
Executes the transaction synchronously.
Raises:
-
RequestError–If the HTTP request fails.
-
TypeError–If the type parameter cannot be resolved.