new PgCursor()
A cursor that reads progressively the rows from Postgres, it is usefull for reading very large result.
- Source:
Methods
close(completionHandler)
Like PgCursor#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 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: