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

run query after each connections in pool conected #1453

Open
parsibox opened this issue Nov 16, 2021 · 2 comments
Open

run query after each connections in pool conected #1453

parsibox opened this issue Nov 16, 2021 · 2 comments

Comments

@parsibox
Copy link

parsibox commented Nov 16, 2021

hi
i need run a query after each connections in pool conected
some option like MYSQL_ATTR_INIT_COMMAND in php PDO
please help me

@sidorares
Copy link
Owner

sidorares commented Nov 17, 2021

Are you talking about idleConnectionTimeout ?

probably not implemented yet, need to double check

quick searching shows 2 PRs, need to check if they are still viable

@parsibox
Copy link
Author

on dear i want to run some query after ech connections connected
i found this :

pool.on('connection', function(conn) {

is it ok?

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