struct Redis::Graph::Result

Overview

Parses the results of a Cypher query

Included Modules

Defined in:

graph.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(raw : Array) #

[View source]
def self.new(*, fields : Array(String), rows : Array(Array(Array(Array(Redis::Value) | Int64 | Redis::Error | Redis::Graph::Node | Redis::Graph::Relationship | String | Nil) | Array(Redis::Value) | Int64 | Redis::Error | Redis::Graph::Node | Redis::Graph::Relationship | String | Nil)), cached_execution : Bool, duration : Time::Span, labels_added : Int64, nodes_created : Int64, relationships_created : Int64, properties_set : Int64) #

[View source]

Instance Method Detail

def cached_execution? : Bool #

Indicates whether the query was cached by RedisGraph


[View source]
def duration : Time::Span #

How long it took RedisGraph to execute the query on the server side.


[View source]
def each(&) #
Description copied from module Enumerable(Array(Array(Array(Redis::Value) | Int64 | Redis::Error | Redis::Graph::Node | Redis::Graph::Relationship | String | Nil) | Array(Redis::Value) | Int64 | Redis::Error | Redis::Graph::Node | Redis::Graph::Relationship | String | Nil))

Must yield this collection's elements to the block.


[View source]
def fields : Array(String) #

The names of the fields in a query's RETURN clause


[View source]
def labels_added : Int64 #

How many labels were added in this query


[View source]
def nodes_created : Int64 #

How many nodes were created in this query


[View source]
def properties_set : Int64 #

How many properties were set in this query


[View source]
def relationships_created : Int64 #

How many relationships were created in this query


[View source]
def rows : Array(List) #

The values of the fields in a query's RETURN clause


[View source]