myxql v0.1.1 MyXQL.Result View Source

Result struct returned from any successful query.

Its public fields are:

  • :columns - The column names;
  • :connection_id - The connection ID;
  • :last_insert_id - The ID of the last inserted row;
  • :num_rows - The number of fetched or affected rows;
  • :rows - The result set. A list of lists, each inner list corresponding to a row, each element in the inner list corresponds to a column

Link to this section Summary

Link to this section Types

Link to this type

t() View Source
t() :: %MyXQL.Result{
  columns: [String.t()] | nil,
  connection_id: pos_integer(),
  last_insert_id: term() | nil,
  num_rows: non_neg_integer() | nil,
  rows: [[term()]] | nil
}