Skip to content

PgFoundRow

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Describes a row that Find(PgHeapTuple) found and locked, and the transaction that wrote it.

public sealed record PgFoundRow : IEquatable<PgFoundRow>

Inheritance: object

Implements: IEquatable<PgFoundRow>

PgFoundRow(PgHeapTuple, ushort, PgTimestampTz?, uint)

Section titled “PgFoundRow(PgHeapTuple, ushort, PgTimestampTz?, uint)”

Describes a row that Find(PgHeapTuple) found and locked, and the transaction that wrote it.

public PgFoundRow(PgHeapTuple Row, ushort CommitOrigin, PgTimestampTz? CommitTime, uint TransactionId)

Parameters:

Row — PgHeapTuple

The row’s values.

CommitOrigin — ushort

The replication origin of the transaction that wrote the row, or zero when it was written locally or PostgreSQL does not track commit timestamps.

CommitTime — PgTimestampTz?

The time that transaction committed, or null when track_commit_timestamp is off or the time is no longer known.

TransactionId — uint

The ID of that transaction.

The replication origin of the transaction that wrote the row, or zero when it was written locally or PostgreSQL does not track commit timestamps.

public ushort CommitOrigin { get; init; }

Value: ushort

The time that transaction committed, or null when track_commit_timestamp is off or the time is no longer known.

public PgTimestampTz? CommitTime { get; init; }

Value: PgTimestampTz?

The row’s values.

public PgHeapTuple Row { get; init; }

Value: PgHeapTuple

The ID of that transaction.

public uint TransactionId { get; init; }

Value: uint

Deconstruct(out PgHeapTuple, out ushort, out PgTimestampTz?, out uint)

Section titled “Deconstruct(out PgHeapTuple, out ushort, out PgTimestampTz?, out uint)”
public void Deconstruct(out PgHeapTuple Row, out ushort CommitOrigin, out PgTimestampTz? CommitTime, out uint TransactionId)

Parameters:

Row — PgHeapTuple

CommitOrigin — ushort

CommitTime — PgTimestampTz?

TransactionId — uint

public bool Equals(PgFoundRow? other)

Parameters:

other — PgFoundRow

Returns: bool

public override bool Equals(object? obj)

Parameters:

obj — object

Returns: bool

public override int GetHashCode()

Returns: int

public override string ToString()

Returns: string

public static bool operator ==(PgFoundRow? left, PgFoundRow? right)

Parameters:

left — PgFoundRow

right — PgFoundRow

Returns: bool

public static bool operator !=(PgFoundRow? left, PgFoundRow? right)

Parameters:

left — PgFoundRow

right — PgFoundRow

Returns: bool