PgAnyElement
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Represents a non-null PostgreSQL anyelement value with its resolved type and checked native lifetime.
public sealed class PgAnyElementInheritance: object
Constructors
Section titled “Constructors”PgAnyElement(PgDatum)
Section titled “PgAnyElement(PgDatum)”Represents a non-null PostgreSQL anyelement value with its resolved type and checked native lifetime.
public PgAnyElement(PgDatum datum)Parameters:
datum — PgDatum
The present native value.
Methods
Section titled “Methods”CopyTo(PgMemoryContext)
Section titled “CopyTo(PgMemoryContext)”Copies the value into a different native owner.
public PgAnyElement CopyTo(PgMemoryContext context)Parameters:
context — PgMemoryContext
The destination memory context.
Returns: PgAnyElement
The independently owned value.
Read<T>()
Section titled “Read<T>()”Reads a managed value with exact type checking; polymorphic wrappers retain this value’s native lifetime.
public T Read<T>()Type parameters:
T
The managed representation.
Returns: T
The managed copy or wrapper sharing this value’s lifetime.
Properties
Section titled “Properties”Gets the checked native value and its actual PostgreSQL type, including domain identity.
public PgDatum Datum { get; }Value: PgDatum
TypeOid
Section titled “TypeOid”Gets the resolved PostgreSQL type OID.
public uint TypeOid { get; }Value: uint