-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 Close method for AsyncConnection? #101
Comments
I've found the solution to this, and this needs to be better documented because the implication in the source is that this needs to be done when the app is suspending. The solution is to call SQLiteConnectionPool.Shared.Reset(); This closes all of the open connections. If I've got this wrong, perhaps the code maintainers can provide the correct solution. Thanks, |
SQLiteConnectionPool is not public so it cannot be called! |
You can use reflection to call it. In my attempts it worked perfectly for Android and Windows, it fires back after 3x or 4x such closed connections on iOS. Damn... I was almost tempted to go for this solution but on iOS (simulator) it does not seem to be a viable solution. There must be a reason the creators did the Reset method internal so all in all this approach is probably not recommended but I need to close the connection time to time... :-(
|
Pls has this issue been resolved? I also need the close() method on the async connection. |
Up for the Maybe @praeclarum can easily clarify this aspect. |
Yeah, this is all my fault. I still use the synchronous version so the Async version gets neglected. I've created Issue #480 to remind me to get these back in parity. This issue will track the change to expose |
Isn't that dangerous? If you want to just close your current connection, exposing a |
Fix an issue that miscount length of a query including non-ascii characters Fix praeclarum#147 Fix praeclarum#101
Working on a |
Thank you so much! |
To cleare that pool call:
now you can establish a new connection |
If I create a non-async Connection, there is a Close method I can access. However, there isn't a Close method for async connections. Should there be?
The text was updated successfully, but these errors were encountered: