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

simple support for mysql2 promise version of query #62

Merged
merged 3 commits into from
Oct 24, 2018

Conversation

jafl
Copy link
Contributor

@jafl jafl commented Oct 23, 2018

Issue #, if available:

Missing support for mysql2 promises.

Description of changes:

The change in patchCreateConnection() detects a Promise and patches through to the actual Connection object.

The change in resolveArguments() adds support for passing {sql,values} as a single argument to query(), which is supported by mysql2.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jafl
Copy link
Contributor Author

jafl commented Oct 23, 2018

Working on unit tests...

@haotianw465 haotianw465 merged commit 90a34d8 into aws:master Oct 24, 2018
@haotianw465
Copy link
Contributor

Thank you for your contribution. I have merged this PR and will prepare a release soon.

@yvele
Copy link

yvele commented Jan 14, 2019

Any clue on when this will be released? 🤔

Edit: Ok unrelated to this PR, I got error on high level promise support #6 (comment)

@jafl
Copy link
Contributor Author

jafl commented Jan 14, 2019

This is in 2.1.0

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

Successfully merging this pull request may close these issues.

None yet

3 participants