-
Notifications
You must be signed in to change notification settings - Fork 33
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
Promise #66
Comments
I have thought about it, but haven't got around to implementing anything yet. A few months ago I was thinking of adding 3 promise-returning methods on
These would not be terrible difficult to implement on top of the existing stream API in a separate package that each adapter could re-use. Something like |
Proper Promise support in any-db and any-db-transaction would be really nice :) |
@Meaglin, check out this one: pg-promise.
|
To make use of the async/await syntax we need promise returns. const wait = require('promise-streams').wait;
[...]
await wait(connection.query(sql).on('data', row => console.log(row))); |
Are there any plans for Promise support, alongside the callbacks and streams?
Thanks.
The text was updated successfully, but these errors were encountered: