-
Notifications
You must be signed in to change notification settings - Fork 35
feat: close()
& support using
syntax
#178
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #178 +/- ##
=======================================
Coverage ? 56.36%
=======================================
Files ? 22
Lines ? 841
Branches ? 114
=======================================
Hits ? 474
Misses ? 365
Partials ? 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Can you please ask a test for close? (should be last) |
Added a test :) |
Additionally, i think it would be nice to flag disposed instances so they won't be reused anymore. Also we should reject any new query or prepares when drivers are disposed. (it can be added in abstract wrapper with a |
Is the abstract wrapper database.ts or are you suggesting creating a new one? |
yes, database.ts |
using
syntax requires Node.js v22 and aboveAdds
using
support to automatically close the database connection