class Cassie::Statements::Results::CursoredResult

Attributes

max_cursor_key[R]

Public Instance Methods

after_initialize(opts) click to toggle source
# File lib/cassie/statements/execution/results/cursored_result.rb, line 11
def after_initialize(opts)
  super
  @max_cursor_key = opts[:max_cursor_key]

  define_singleton_method "next_max_#{max_cursor_key}" do
    next_max_cursor
  end
end
next_max_cursor() click to toggle source
# File lib/cassie/statements/execution/results/cursored_result.rb, line 20
def next_max_cursor
  if peeked_row
    peeked_row[max_cursor_key]
  end
end