struct

FalkorDB::ResultSet(T)

Inherits Enumerable < Struct < Value < Object

Constructors

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)
Source

Instance methods

cached_execution?

Indicates whether the query was cached by FalkorDB

Source
duration

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

Source
each

Must yield this collection's elements to the block.

Source
each_row

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

Source
fields

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

Source
indices_created
Source
indices_deleted
Source
labels_added

How many labels were added in this query

Source
labels_removed

How many labels were removed in this query

Source
nodes_created

How many nodes were created in this query

Source
nodes_deleted

How many nodes were deleted in this query

Source
properties_removed

How many properties were removed in this query

Source
properties_set

How many properties were set in this query

Source
relationships_created

How many relationships were created in this query

Source
relationships_deleted

How many relationships were deleted in this query

Source
rows

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

Source
size

Returns the number of elements in the collection.

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

Nested types