Inherits

Object

Includes

  • Enumerable

Methods

execution_info

Query execution information, such as number of retries and all tried hosts, etc.

Returns:
Type Details
Execution::Info

empty?

Returns whether it has any rows

Returns:
Type Details
Boolean whether it has any rows

size

aliased as: length

Returns rows count

Returns:
Type Details
Integer rows count

each

{|row| … } aliased as: rows each_row

Returns Enumerator if no block given

Yield Parameters:
Name Type Details
row Hash current row
Returns:
Type Details
(Enumerator or self) returns Enumerator if no block given

last_page?

Returns whether no more pages are available

Returns:
Type Details
Boolean whether no more pages are available

next_page

(options = nil)

Loads next page synchronously

Parameters:
Name Type Details
options Hash (defaults to: nil) additional options, just like the ones for Session#execute
Returns:
Type Details
(Result or nil) returns nil if last page
See Also:

next_page_async

(options = nil)

Loads next page asynchronously

Parameters:
Name Type Details
options Hash (defaults to: nil) additional options, just like the ones for Session#execute_async
Returns:
Type Details
Future<Result, nil> nil if last page
See Also: