EctoHrana.Result (EctoHrana v0.1.0)

Copy Markdown View Source

The result of a statement.

  • :columns - the names of the returned columns;
  • :rows - the returned rows, as lists of values; nil for a statement returning no columns (an INSERT without RETURNING, a DDL statement);
  • :num_rows - the number of rows returned, or, when rows is nil, the number of rows the statement changed;
  • :last_insert_id - the rowid of the last row inserted, if any.

Summary

Types

t()

@type t() :: %EctoHrana.Result{
  columns: [String.t()],
  last_insert_id: integer() | nil,
  num_rows: non_neg_integer(),
  rows: [list()] | nil
}