Class: SQLite3::ResultSet

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

Overview

Customize the standard Sqlite3 resultset to make more compatible with Og.

Instance Method Summary collapse

Instance Method Details

#each_rowObject



18
19
20
21
22
# File 'lib/og/store/sqlite.rb', line 18

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

#first_valueObject



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

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