Skip to content

document how to run query and retrieve results #3220

@dberardo-com

Description

@dberardo-com

import { Writer } from './buffer-writer'

for some weird reason i am confronting myself with the low level pg-protocol API in typeorm. i need to fire a query and wait for results, or alternatively i need to listen to the onconnect event when the client reconnects.

i am doing connection.query("select 42;") but this is not a promise ... so i am not sure how to understand that the connection is working fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions