Mq.Result (mq_elixir v0.1.17)

View Source

Result of an mq query execution.

Fields

  • :values - List of result values (strings)
  • :text - All values joined by newlines

Summary

Functions

Check if the result is empty.

Create a Result from a map returned by the NIF.

Get the number of values in the result.

Types

t()

@type t() :: %Mq.Result{text: String.t(), values: [String.t()]}

Functions

empty?(result)

@spec empty?(t()) :: boolean()

Check if the result is empty.

from_map(map)

@spec from_map(map()) :: t()

Create a Result from a map returned by the NIF.

length(result)

@spec length(t()) :: non_neg_integer()

Get the number of values in the result.