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

PromisePoolCluster missing functionality #1381

Closed
sjones512 opened this issue Sep 10, 2021 · 0 comments · Fixed by #3017
Closed

PromisePoolCluster missing functionality #1381

sjones512 opened this issue Sep 10, 2021 · 0 comments · Fixed by #3017

Comments

@sjones512
Copy link

Tried to use the PromisePoolCluster implementation that was recently included.

It appears to be missing at least the remove inherited event. Not sure if there are others.
It also doesn't support passing a pattern or selector to getConnection.

Seems like you maybe be able to workaround the first by using promisePoolCluster.poolCluster.on('remove'...
And I suppose you can always workaround the second by refactoring your code to call .of(pattern, selector), but it seems like these should be added to match the documentation for PoolCluster.

TuckerWhitehouse added a commit to TuckerWhitehouse/node-mysql2 that referenced this issue Sep 5, 2024
The implementation of `PromisePoolCluster#getConnection` does not match the capabilities of `PoolCluster#getConnection` nor the definition in `promise.d.ts`.

This change corrects this by adding the missing `pattern` and `selector` parameters which are passed through to the underlying method.

Fixes sidorares#1381 

Note: I may have missed them, but I didn't see any tests for PromisePoolCluster to update or add to with this change.
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 a pull request may close this issue.

1 participant