PgEnumInfo
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Owns a PostgreSQL enum catalog entry, including its label OID and server sort position. SortOrder follows PostgreSQL declaration and ALTER TYPE ordering, independently of C# numeric values.
public sealed record PgEnumInfo : IEquatable<PgEnumInfo>Inheritance: object
Implements: IEquatable<PgEnumInfo>
Constructors
Section titled “Constructors”PgEnumInfo(string, uint, uint, float)
Section titled “PgEnumInfo(string, uint, uint, float)”Owns a PostgreSQL enum catalog entry, including its label OID and server sort position. SortOrder follows PostgreSQL declaration and ALTER TYPE ordering, independently of C# numeric values.
public PgEnumInfo(string Label, uint TypeOid, uint ValueOid, float SortOrder)Parameters:
Label — string
The exact label decoded from the server encoding.
TypeOid — uint
The PostgreSQL enum type OID.
ValueOid — uint
The pg_enum row OID used as the stored enum datum.
SortOrder — float
The catalog’s sort position, which may be fractional after adding labels.
Methods
Section titled “Methods”Deconstruct(out string, out uint, out uint, out float)
Section titled “Deconstruct(out string, out uint, out uint, out float)”public void Deconstruct(out string Label, out uint TypeOid, out uint ValueOid, out float SortOrder)Parameters:
Label — string
TypeOid — uint
ValueOid — uint
SortOrder — float
Equals(PgEnumInfo?)
Section titled “Equals(PgEnumInfo?)”public bool Equals(PgEnumInfo? other)Parameters:
other — PgEnumInfo
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
Properties
Section titled “Properties”The exact label decoded from the server encoding.
public string Label { get; init; }Value: string
SortOrder
Section titled “SortOrder”The catalog’s sort position, which may be fractional after adding labels.
public float SortOrder { get; init; }Value: float
TypeOid
Section titled “TypeOid”The PostgreSQL enum type OID.
public uint TypeOid { get; init; }Value: uint
ValueOid
Section titled “ValueOid”The pg_enum row OID used as the stored enum datum.
public uint ValueOid { get; init; }Value: uint
Operators
Section titled “Operators”operator ==(PgEnumInfo?, PgEnumInfo?)
Section titled “operator ==(PgEnumInfo?, PgEnumInfo?)”public static bool operator ==(PgEnumInfo? left, PgEnumInfo? right)Parameters:
left — PgEnumInfo
right — PgEnumInfo
Returns: bool
operator !=(PgEnumInfo?, PgEnumInfo?)
Section titled “operator !=(PgEnumInfo?, PgEnumInfo?)”public static bool operator !=(PgEnumInfo? left, PgEnumInfo? right)Parameters:
left — PgEnumInfo
right — PgEnumInfo
Returns: bool