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

Use util.promisify.custom to improve promisify support of db.run() #1233

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kimamula
Copy link

Fixes #658

Currently, promisifying db.run() results in a loss of information of lastID and changes.
In this PR, I customized the promisification of db.run() using util.promisify.custom to solve the problem.

@kimamula
Copy link
Author

kimamula commented Oct 27, 2019

It is likely that the build fails due to nodejs/node-gyp#1933

@daniellockyer
Copy link
Member

@kimamula Would you mind rebasing on top of master so CI can be run? 🙂

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

Successfully merging this pull request may close these issues.

Problem when promisify run
2 participants