SqliteOptions.persistent constructor
const
SqliteOptions.persistent(
- String name, {
- String? nativePath,
- SqliteJournal? journal = SqliteJournal.wal,
- Duration busyTimeout = const Duration(seconds: 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;