You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,11 @@ Read `rowCount` rows from the cursor instance. The `callback` will be called wh
65
65
66
66
If the cursor has read to the end of the result sets all subsequent calls to `cursor#read` will return a 0 length array of rows. I'm open to other ways to signal the end of a cursor, but this has worked out well for me so far.
67
67
68
+
69
+
#### cursor#close(function callback(Error err))
70
+
71
+
Closes the backend portal before itterating through the entire result set. Useful when you want to 'abort' out of a read early but continue to use the same client for other queries after the cursor is finished.
0 commit comments