Skip to content

pg-promise equivalent to libpq-async PQsendQuery? #885

Answered by vitaly-t
dennyau asked this question in Q&A
Discussion options

You must be logged in to vote

This library supports only what the underlying driver does.

To my knowledge, there is no such thing as async execution, as the driver requires that only one query can be executed at a time against the same connection, so you would have to wait. You can, of course, execute a query and simply not wait for the result, but that's different, because you still won't be able to execute another one, till it finishes.

There have been some discussions around it in the driver:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dennyau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants