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

No way to attach pool event listeners #1

Open
dmaevac opened this issue Jan 22, 2020 · 2 comments
Open

No way to attach pool event listeners #1

dmaevac opened this issue Jan 22, 2020 · 2 comments

Comments

@dmaevac
Copy link

dmaevac commented Jan 22, 2020

The following is not uncommon, but there does not seem to be a way to achieve it using pg-txclient

pool.on('error', err => {
  logger.error(err, 'Unexpected error on idle client')
})
@elhoyos
Copy link
Contributor

elhoyos commented Jan 22, 2020

One option is to export pools and let the user of the library to use as pleased. How does it sound?

@dmaevac
Copy link
Author

dmaevac commented Jan 22, 2020

Could they be specified in the same way that validations is, maybe?

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

No branches or pull requests

2 participants