Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Support for unbuffered queries using events #139

Open
mayurbangar opened this issue Mar 6, 2024 · 0 comments
Open

Documentation: Support for unbuffered queries using events #139

mayurbangar opened this issue Mar 6, 2024 · 0 comments

Comments

@mayurbangar
Copy link

mayurbangar commented Mar 6, 2024

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))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant