Kuzu::
Result class
Superclass | rb_cObject |
Included Modules |
|
Extended With |
|
Kùzu query result class
Public Class Methods
Return a Kuzu::Result
for the next result set after the specified result
. Returns nil
if there is no next result set..
Execute the given statement
and return the Kuzu::Result
. If a block is given, the result will instead be yielded to it, finished when it returns, and the return value of the block will be returned instead.
Execute the given query
via the specified connection
and return the Kuzu::Result
. If a block is given, the result will instead be yielded to it, finished when it returns, and the return value of the block will be returned instead.
If the block
is provided, yield result
to it and then call finish
on it, returning the block
result. If block
is not given, just return result
.
Public Instance Methods
Fetch the names of the columns in the result as an Array of Strings.
Iterate over each tuple of the result, yielding it to the block
. If no block
is given, return an Enumerator that will yield them instead.
Iterate over each result set in the results, yielding it to the block. If no block
is given, return an Enumerator tht will yield each set as its own Result
.
Discard a result and free up its memory. An exception is raised if the result is used after this call.
Returns true
if the receiver has been finished.
Returns the names of the columns of the results as an Array of Strings.
Returns the next tuple of the query result values if there is one, otherwise returns nil
.
Returns true if we have not consumed all tuples in the query result, false otherwise.
Returns true if there was more than one result set in the results, and the current set is not the last one. You can call next_set
to move on to the next result set.
Return a string representation of the receiver suitable for debugging.
Get the next tuple of the result as a Hash.
Return the next result set after this one as a Kuzu::Result
, or nil
if there is no next set.
Returns the number of columns in the query result.
Returns the number of tuples in the query result.
Return a Kuzu::QuerySummary
for the query that generated the Result
.
Resets the iterator of the query result to the beginning.
Returns true if the query is executed successful, false otherwise.
Returns the result as a String.
Protected Instance Methods
Return an Enumerator that yields result tuples as Hashes.