Skip to content

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>

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.

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

public bool Equals(PgEnumInfo? other)

Parameters:

other — PgEnumInfo

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

The exact label decoded from the server encoding.

public string Label { get; init; }

Value: string

The catalog’s sort position, which may be fractional after adding labels.

public float SortOrder { get; init; }

Value: float

The PostgreSQL enum type OID.

public uint TypeOid { get; init; }

Value: uint

The pg_enum row OID used as the stored enum datum.

public uint ValueOid { get; init; }

Value: uint

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

Parameters:

left — PgEnumInfo

right — PgEnumInfo

Returns: bool

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

Parameters:

left — PgEnumInfo

right — PgEnumInfo

Returns: bool