View Source Avalanche.Result (Avalanche v0.11.5)

The Result struct returned from any successful query.

Fields:

  • :status - the status of the statement being executed (:running, :complete)

  • :statement_handle - the unique identifier for the statement being executed

  • :num_rows - the number of fetched or affected rows

  • :rows - the result set. A list of maps with, each inner map corresponding to a row and each element in the map corresponds to a column.

Link to this section Summary

Link to this section Types

@type result_status() :: atom()
@type t() :: %Avalanche.Result{
  num_rows: non_neg_integer() | nil,
  rows: [map()] | nil,
  statement_handle: String.t() | nil,
  status: result_status()
}