Skip to content

Documentation: Support for unbuffered queries using events #139

@mayurbangar

Description

@mayurbangar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions