Method: SQLite3::ResultSet#next

Defined in:
lib/sqlite3/resultset.rb

#nextObject

Obtain the next row from the cursor. If there are no more rows to be had, this will return nil.

The returned value will be an array, unless Database#results_as_hash has been set to true, in which case the returned value will be a hash.

For arrays, the column names are accessible via the fields property, and the column types are accessible via the types property.

For hashes, the column names are the keys of the hash, and the column types are accessible via the types property.



42
43
44
# File 'lib/sqlite3/resultset.rb', line 42

def next
  @stmt.step
end