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>, IEnumerableInheritance: object
Implements: IReadOnlyList<PgDatum>, IReadOnlyCollection<PgDatum>, IEnumerable<PgDatum>, IEnumerable
Properties
Section titled “Properties”Gets the number of cells.
public int Count { get; }Value: int
this[int]
Section titled “this[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.
this[string]
Section titled “this[string]”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.
Methods
Section titled “Methods”GetEnumerator()
Section titled “GetEnumerator()”Enumerates datums in column order.
public IEnumerator<PgDatum> GetEnumerator()Returns: IEnumerator<PgDatum>
The value enumerator.
GetOrdinal(string)
Section titled “GetOrdinal(string)”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.
Get<T>(int)
Section titled “Get<T>(int)”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.
Get<T>(string)
Section titled “Get<T>(string)”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.