struct Redis::Graph::Result
- Redis::Graph::Result
- Struct
- Value
- Object
Overview
Parses the results of a Cypher query
Included Modules
- 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))
Defined in:
graph.crConstructors
- .new(raw : Array)
- .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)
Instance Method Summary
-
#cached_execution? : Bool
Indicates whether the query was cached by RedisGraph
-
#duration : Time::Span
How long it took RedisGraph to execute the query on the server side.
-
#each(&)
Must yield this collection's elements to the block.
-
#fields : Array(String)
The names of the fields in a query's
RETURN
clause -
#labels_added : Int64
How many labels were added in this query
-
#nodes_created : Int64
How many nodes were created in this query
-
#properties_set : Int64
How many properties were set in this query
-
#relationships_created : Int64
How many relationships were created in this query
-
#rows : Array(List)
The values of the fields in a query's
RETURN
clause
Constructor Detail
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)
#
Instance Method Detail
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.