class SQLite3::ResultSet

def reset(*bind_params)

can be rewound and reiterated.
Reset the cursor, so that a result set which has reached end-of-file
def reset(*bind_params)
  @stmt.reset!
  @stmt.bind_params(*bind_params)
end