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>
Constructors
Section titled “Constructors”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.
Properties
Section titled “Properties”CommitOrigin
Section titled “CommitOrigin”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
CommitTime
Section titled “CommitTime”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
TransactionId
Section titled “TransactionId”The ID of that transaction.
public uint TransactionId { get; init; }Value: uint
Methods
Section titled “Methods”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
Equals(PgFoundRow?)
Section titled “Equals(PgFoundRow?)”public bool Equals(PgFoundRow? other)Parameters:
other — PgFoundRow
Returns: bool
Equals(object?)
Section titled “Equals(object?)”public override bool Equals(object? obj)Parameters:
obj — object
Returns: bool
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns: int
ToString()
Section titled “ToString()”public override string ToString()Returns: string
Operators
Section titled “Operators”operator ==(PgFoundRow?, PgFoundRow?)
Section titled “operator ==(PgFoundRow?, PgFoundRow?)”public static bool operator ==(PgFoundRow? left, PgFoundRow? right)Parameters:
left — PgFoundRow
right — PgFoundRow
Returns: bool
operator !=(PgFoundRow?, PgFoundRow?)
Section titled “operator !=(PgFoundRow?, PgFoundRow?)”public static bool operator !=(PgFoundRow? left, PgFoundRow? right)Parameters:
left — PgFoundRow
right — PgFoundRow
Returns: bool