Skip to content

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 PgAnyElement

Inheritance: object

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.

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.

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.

Gets the checked native value and its actual PostgreSQL type, including domain identity.

public PgDatum Datum { get; }

Value: PgDatum

Gets the resolved PostgreSQL type OID.

public uint TypeOid { get; }

Value: uint