Class: SQLite::ResultSet

Inherits:
Object
  • Object
show all
Defined in:
lib/og/store/sqlite2.rb

Overview

– Customize the standard Sqlite2 resultset to make more compatible with Og. ++

Instance Method Summary collapse

Instance Method Details

#each_rowObject



24
25
26
27
28
# File 'lib/og/store/sqlite2.rb', line 24

def each_row
  each do |row|
    yield(row, 0)
  end
end

#first_valueObject



30
31
32
33
34
# File 'lib/og/store/sqlite2.rb', line 30

def first_value
  val = self.next[0]
  close
  return val
end