Description

Cursor is the result of a query. Its cursor starts before the first row of the result set. A Cursor is not thread safe and should only be accessed by a single goroutine at any given time. Use Next to advance through the rows:

cursor, err := query.Run(session)
...
defer cursor.Close()

var response interface{}
for cursor.Next(&response) {
    ...
}
err = cursor.Err() // get any error encountered during iteration
...

Cursor is referenced in 13 repositories

github.com/dancannon/gorethink github.com/codeclysm/rdbutils github.com/neutrinoapp/neutrino

...