Skip to content

SpiRawRow

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Provides raw datums with explicit PostgreSQL types and NULL flags for one SPI row.

public sealed class SpiRawRow : IReadOnlyList<PgDatum>, IReadOnlyCollection<PgDatum>, IEnumerable<PgDatum>, IEnumerable

Inheritance: object

Implements: IReadOnlyList<PgDatum>, IReadOnlyCollection<PgDatum>, IEnumerable<PgDatum>, IEnumerable

Gets the number of cells.

public int Count { get; }

Value: int

Gets a raw value by its zero-based ordinal. SQL NULL has IsNull set on its datum.

public PgDatum this[int index] { get; }

Parameters:

index — int

The column ordinal.

Value: PgDatum

The raw value.

Gets the first column with an exact case-sensitive name.

public PgDatum this[string name] { get; }

Parameters:

name — string

The column name.

Value: PgDatum

The raw value, including its SQL NULL flag.

Enumerates datums in column order.

public IEnumerator<PgDatum> GetEnumerator()

Returns: IEnumerator<PgDatum>

The value enumerator.

Resolves an exact, case-sensitive column name to its zero-based ordinal. Duplicate names resolve to the first column.

public int GetOrdinal(string name)

Parameters:

name — string

The column name.

Returns: int

The zero-based ordinal.

Reads a column as a managed value or a polymorphic wrapper sharing this result’s lifetime.

public T Get<T>(int ordinal)

Type parameters:

T

The requested representation.

Parameters:

ordinal — int

The zero-based column ordinal.

Returns: T

The copied managed value or checked native wrapper.

Reads the first column with an exact case-sensitive name.

public T Get<T>(string name)

Type parameters:

T

The requested representation.

Parameters:

name — string

The column name.

Returns: T

The copied managed value or a wrapper sharing this result’s lifetime.