Class NpgsqlRedbTransaction

Assembly: redb.Postgres.dll

PostgreSQL implementation of IRedbTransaction using Npgsql.
Connection-scoped: parent connection automatically uses this transaction.

public class NpgsqlRedbTransaction : IRedbTransaction, IAsyncDisposable

Inheritance

ObjectNpgsqlRedbTransaction

Implements

Properties

IsActive

Whether transaction is still active.

public bool IsActive { get; }

StartedAt

Transaction start time.

public DateTimeOffset StartedAt { get; }

TransactionId

Transaction unique identifier.

public Guid TransactionId { get; }

Methods

CommitAsync()

Commit all changes.

public Task CommitAsync()

DisposeAsync()

Dispose transaction.

public ValueTask DisposeAsync()

RollbackAsync()

Rollback all changes.

public Task RollbackAsync()

Constructors