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

Plugins.Sqlite Database locked #155

@Jerome2606

Description

@Jerome2606

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions