Interface IRedbTransaction

Namespace: redb.Core.Data
Assembly: redb.Core.dll

Database transaction abstraction for REDB.
Connection-scoped: all operations through parent connection
automatically participate in this transaction.

public interface IRedbTransaction : IAsyncDisposable

Properties

IsActive

Whether transaction is still active (not committed or rolled back).

bool IsActive { get; }

StartedAt

Transaction start time.

DateTimeOffset StartedAt { get; }

TransactionId

Transaction unique identifier (for diagnostics).

Guid TransactionId { get; }

Methods

CommitAsync()

Commit all changes in transaction.

Task CommitAsync()

RollbackAsync()

Rollback all changes in transaction.

Task RollbackAsync()