Skip to content

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>, IEnumerable

Inheritance: object

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

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

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.

Gets the row count reported by PostgreSQL for the final statement.

public long RowsAffected { get; }

Value: long

Enumerates rows in PostgreSQL result order.

public IEnumerator<SpiRow> GetEnumerator()

Returns: IEnumerator<SpiRow>

The row enumerator.

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.