SqliteOptions.persistent constructor

const SqliteOptions.persistent(
  1. String name, {
  2. String? nativePath,
  3. SqliteJournal? journal = SqliteJournal.wal,
  4. Duration busyTimeout = const Duration(seconds: 5),
  5. SqliteWebOptions web = const SqliteWebOptions(),
})

OPFS on Web; nativePath on native platforms.

Native callers must supply a non-empty file path in a directory they own. The ORM does not guess a Flutter application's documents directory.

Implementation

const SqliteOptions.persistent(
  String this.name, {
  String? nativePath,
  this.journal = SqliteJournal.wal,
  this.busyTimeout = const Duration(seconds: 5),
  this.web = const SqliteWebOptions(),
}) : path = nativePath ?? '',
     readOnly = false;