new Cursor()
A cursor that reads progressively rows from the database, it is useful for reading very large result sets.
- Source:
Methods
close(completionHandler)
Like Cursor#close but with a
completionHandler called when the cursor has been released.
Parameters:
| Name | Type | Description |
|---|---|---|
completionHandler |
function |
- Source:
hasMore() → {boolean}
Returns
true when the cursor has results in progress and the Cursor#read should be called to retrieve
them.
- Source:
Returns:
whether the cursor has more results,
- Type
- boolean
read(count, handler)
Read rows from the cursor, the result is provided asynchronously to the
handler.
Parameters:
| Name | Type | Description |
|---|---|---|
count |
number | the amount of rows to read |
handler |
function | the handler for the result |
- Source: