vertica / vertica-nodejs

Official native node.js client for the Vertica Analytics Database.
https://www.vertica.com/
Apache License 2.0
12 stars 14 forks source link

Documentation: Support for unbuffered queries using events #139

Open mayurbangar opened 6 months ago

mayurbangar commented 6 months ago

Do we have a feature to support unbuffered queries? For example if I have a huge result set and I want to process the result row as soon as it is emitted, do we expose any event handler for that. I tried using client.on('dataRow', function(row){}) but that doesn't really help.


connection = client.connect()

client.query("SELECT * FROM table")

//This doesn't work, and does not throw any error either.
client.on('dataRow', (row) => console.log(row))