openReadOnly method

  1. @override
SqliteDatabase openReadOnly(
  1. String path
)
override

Opens path read-only.

Implementation

@override
SqliteDatabase openReadOnly(String path) {
  final db = sqlite3.open(path, mode: OpenMode.readOnly);
  db.execute('PRAGMA busy_timeout = $sqliteBusyTimeoutMs');
  return _Sqlite3Database(db);
}