SpiResult
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Contains materialized SPI rows and column metadata that remain valid after SPI disconnects.
public sealed class SpiResult : IReadOnlyList<SpiRow>, IReadOnlyCollection<SpiRow>, IEnumerable<SpiRow>, IEnumerableInheritance: object
Implements: IReadOnlyList<SpiRow>, IReadOnlyCollection<SpiRow>, IEnumerable<SpiRow>, IEnumerable
Properties
Section titled “Properties”Columns
Section titled “Columns”Gets the result’s columns, including when a query returns no rows.
public IReadOnlyList<SpiColumn> Columns { get; }Value: IReadOnlyList<SpiColumn>
Gets the number of materialized rows.
public int Count { get; }Value: int
this[int]
Section titled “this[int]”Gets a row by its zero-based index.
public SpiRow this[int index] { get; }Parameters:
index — int
The row index.
Value: SpiRow
The result row.
RowsAffected
Section titled “RowsAffected”Gets the row count reported by PostgreSQL for the final statement.
public long RowsAffected { get; }Value: long
Methods
Section titled “Methods”GetEnumerator()
Section titled “GetEnumerator()”Enumerates rows in PostgreSQL result order.
public IEnumerator<SpiRow> GetEnumerator()Returns: IEnumerator<SpiRow>
The row enumerator.
GetOrdinal(string)
Section titled “GetOrdinal(string)”Resolves an exact, case-sensitive column name to its zero-based ordinal, including when the query returned no rows. Duplicate names resolve to the first column.
public int GetOrdinal(string name)Parameters:
name — string
The column name.
Returns: int
The zero-based ordinal.