Closing the connection on component destroy #580
Answered
by
jepiqueau
yshalsager
asked this question in
Q&A
-
I am using SQLite plugin with Svelte. My understanding is: SQLite is embedded, so if the code has stopped, the connection by definition is closed. Do I have to close the db connection if I need it all the time the app is working? Or is it closed implicitly when the app is stopped? e.g |
Beta Was this translation helpful? Give feedback.
Answered by
jepiqueau
Nov 5, 2024
Replies: 1 comment
-
@yshalsager i think it is a better usage to close the connection which will close the database before closing the app. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yshalsager
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@yshalsager i think it is a better usage to close the connection which will close the database before closing the app.