SqliteConnection.synchronousWrapper constructor
SqliteConnection.synchronousWrapper(
- CommonDatabase raw, {
- Mutex? mutex,
Creates a SqliteConnection instance that wraps a raw CommonDatabase
from the sqlite3
package.
Users should not typically create connections manually at all. Instead,
open a SqliteDatabase through a factory. In special scenarios where it
may be easier to wrap a raw
databases (like unit tests), this method
may be used as an escape hatch for the asynchronous wrappers provided by
this package.
Implementation
factory SqliteConnection.synchronousWrapper(CommonDatabase raw,
{Mutex? mutex}) {
return SyncSqliteConnection(raw, mutex ?? Mutex());
}