View Source Avalanche.Result (Avalanche v0.13.0)

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. If multiple statements were specified in the request, this handle corresponds to the set of those statements.

  • :statement_handles - list of unique identifiers for the statements being executed for this request.

  • :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.

Summary

Types

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