cursorToList: Convert cursor into a list

Description Usage Arguments Value Note Author(s)

View source: R/cursor.R

Description

Converts cursor into a list. For convenience, when given anything other than cursor returns this object unchanged; this way can be used to wrap the result of $run, so that it is never a cursor.

Usage

1
cursorToList(x, maxResults = 10000)

Arguments

x

RethinkDB cursor or any object.

maxResults

Number of results sufficient to stop pulling from cursor.

Value

A list of elements pulled from x if it is a cursor, x otherwise.

Note

The lenght of a list may be larger than maxResults because RethinkDB transmits results in batches.

Author(s)

Miron B. Kursa


mbq/rethinker documentation built on May 22, 2019, 12:57 p.m.