StorageMode enum

Available locations to store database content in browsers.

Inheritance
Available extensions

Values

opfs → const StorageMode

A origin-private folder provided by the file system access API.

This is generally considered to be the most reliable way to store large data efficiently.

indexedDb → const StorageMode

A virtual file system implemented by splitting files into chunks which are then stored in IndexedDB.

As sqlite3 expects a synchronous file system and IndexedDB is asynchronous, we maintain the illusion if synchronous access by keeping the entire database cached in memory and then flushing changes asynchronously. This technically looses durability, but is reasonably reliable in practice.

inMemory → const StorageMode

Don't persist databases, instead keeping them in memory only.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<StorageMode>
A constant List of the values in this enum, in order of their declaration.