Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Plugins.Sqlite Database locked #155

Open
Jerome2606 opened this issue Mar 31, 2017 · 0 comments
Open

Plugins.Sqlite Database locked #155

Jerome2606 opened this issue Mar 31, 2017 · 0 comments

Comments

@Jerome2606
Copy link

Jerome2606 commented Mar 31, 2017

Hello,

I'm using the plugin to use Sqlite. IMvxSqliteConnectionFactory

I use this in my baseRepository:
`protected readonly SQLiteAsyncConnection Connection;

    public BaseLocalRepository(IMvxSqliteConnectionFactory factory)
    {
        Connection = factory.GetAsyncConnection("mydb.db");`

But recently I got some "Database locked" and "Busy" exception.
I come to this forum:
https://bitbucket.org/twincoders/sqlite-net-extensions/issues/60/async-db-operations-sqliteexception-busy

or again this question on stackoverflow:
http://stackoverflow.com/questions/39577042/sqlite-net-pcl-busy-exception

But I have no idea how can I implement that in my MvvmCross solution.
Can you tell me if I can do something to be sure that Connection is Singleton or how can I prevent these errors ?

Versions:
MvvmCross.Plugins.Sqlite 4.0.0.0
Sqlite.Net 3.1.0.0
Sqlite.Net.Async 3.1.0.0
SqliteNetExtensions 1.0.0.0
SqliteNetExtensionsAsync 1.0.0.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant