struct Redis::Graph::ResultSet(T)

Included Modules

Defined in:

graph.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, fields : Array(String), rows : Array(T), cached_execution : Bool, duration : Time::Span, labels_added : Int64, labels_removed : Int64, nodes_created : Int64, nodes_deleted : Int64, relationships_created : Int64, relationships_deleted : Int64, properties_set : Int64, properties_removed : Int64, indices_created : Int64, indices_deleted : 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(T)

Must yield this collection's elements to the block.


[View source]
def each_row(&) #

Iterate over each of the results, yielding a tuple containing instances of the types in T.


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

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


[View source]
def indices_created : Int64 #

[View source]
def indices_deleted : Int64 #

[View source]
def labels_added : Int64 #

How many labels were added in this query


[View source]
def labels_removed : Int64 #

How many labels were removed in this query


[View source]
def nodes_created : Int64 #

How many nodes were created in this query


[View source]
def nodes_deleted : Int64 #

How many nodes were deleted in this query


[View source]
def properties_removed : Int64 #

How many properties were removed 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 relationships_deleted : Int64 #

How many relationships were deleted in this query


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

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


[View source]
def size #
Description copied from module Enumerable(T)

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

[View source]