Class: SQLite3::ResultSet
- Inherits:
-
Object
- Object
- SQLite3::ResultSet
- Defined in:
- lib/motion-sqlite3/result_set.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(statement, handle) ⇒ ResultSet
constructor
A new instance of ResultSet.
Constructor Details
#initialize(statement, handle) ⇒ ResultSet
Returns a new instance of ResultSet.
3 4 5 6 |
# File 'lib/motion-sqlite3/result_set.rb', line 3 def initialize(statement, handle) @statement = statement @handle = handle end |
Instance Method Details
#each(&block) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/motion-sqlite3/result_set.rb', line 8 def each(&block) until @statement.done? yield current_row @statement.step end end |