Class: OCI8::Cursor

Inherits:
Object
  • Object
show all
Defined in:
lib/og/adapter/oracle/override.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/og/adapter/oracle/override.rb', line 3

def blank?
  0 == row_count
end

#each_rowObject



11
12
13
14
15
16
17
# File 'lib/og/adapter/oracle/override.rb', line 11

def each_row
  idx = 0
  while row = fetch
    yield(row, idx)
    idx += 1
  end
end

#first_valueObject



19
20
21
# File 'lib/og/adapter/oracle/override.rb', line 19

def first_value
  fetch[0]
end

#nextObject



7
8
9
# File 'lib/og/adapter/oracle/override.rb', line 7

def next
  fetch
end