node-pg-cursor
node-pg-cursor copied to clipboard
Invalid JavaScript in the example
Not sure where/how to PR documentation updates, or whether it is possible at all.
This code below in the documentation:
cursor.read(100, function (err, rows) => {
cursor.close(() => {
client.release()
})
})
is invalid JavaScript for the callback function. You cannot combine function
style with =>
arrow style.