NebulaGraphEx.Result (nebula_graph_ex v0.1.10)

Copy Markdown View Source

Raw execution result from NebulaGraph, as returned by DBConnection.

NebulaGraphEx.Graph.query/4 wraps this into a NebulaGraphEx.ResultSet before returning it to the caller. You only need this struct if you are using DBConnection directly.

Fields

  • :columns — ordered list of binary column names
  • :rows — list of raw value lists (each element is a {tag, value} tuple as produced by NebulaGraphEx.Thrift.Types.decode_value/1)
  • :num_rows — number of result rows
  • :latency_us — server-side execution latency in microseconds
  • :space_name — graph space name binary or nil
  • :comment — server comment binary or nil
  • :statement — the originating nGQL statement

Summary

Types

raw_value()

@type raw_value() :: {atom(), term()}

t()

@type t() :: %NebulaGraphEx.Result{
  columns: [String.t()],
  comment: String.t() | nil,
  latency_us: non_neg_integer(),
  num_rows: non_neg_integer(),
  rows: [[raw_value()]],
  space_name: String.t() | nil,
  statement: String.t()
}