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

Closing the database connection / cleanup ? #246

Closed
KrishnaPG opened this issue Mar 13, 2020 · 2 comments
Closed

Closing the database connection / cleanup ? #246

KrishnaPG opened this issue Mar 13, 2020 · 2 comments

Comments

@KrishnaPG
Copy link

Could not find any documentation on how to close the database connection.

At the time of exit or module unload need to close the database connection and free some associated resources, please indicate how to close the db connection.

@daffl
Copy link
Member

daffl commented Apr 1, 2020

db.destroy([callback]) should do this.

@KrishnaPG
Copy link
Author

Thank you @daffl

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