Moebius.Result (Moebius v5.0.0)

Copy Markdown View Source

The raw result of one statement, before Moebius turns rows into maps.

run_batch/1 and transact_batch/1 return these, one per command.

  • :command - :select, :insert, :update, :delete, :create and so on.
  • :columns - column names, in order.
  • :rows - a list of rows, each a list of values in column order. nil for statements that don't return rows.
  • :num_rows - rows returned, or rows affected.

Summary

Types

t()

@type t() :: %Moebius.Result{
  columns: [String.t()],
  command: atom() | nil,
  num_rows: non_neg_integer(),
  rows: [list()] | nil
}