WasmDatabase class Null safety
An experimental, WebAssembly based implementation of a drift sqlite3 database.
Using this database requires adding a WebAssembly file for sqlite3 to your app. Details for that are available here.
- Inheritance
-
- Object
- DelegatedDatabase
- WasmDatabase
Constructors
- WasmDatabase({required dynamic sqlite3, required String path, WasmDatabaseSetup? setup, dynamic fileSystem, bool logStatements = false})
-
Creates a wasm database at
path
in the virtual file system of thesqlite3
module. IffileSystem
provided, the data is guaranteed to be stored in the IndexedDB when the request is complete. Attention! Insert/update queries may be slower when this option enabled. If you want to insert more than one rows, be sure you run in a transaction if possible.factory - WasmDatabase.inMemory(dynamic sqlite3, {WasmDatabaseSetup? setup, bool logStatements = false})
-
Creates an in-memory database in the loaded
sqlite3
database.factory
Properties
- delegate → DatabaseDelegate
-
The DatabaseDelegate to send queries to.
final, inherited
- dialect → dynamic
-
read-only, inherited
- hashCode → int
-
The hash code for this object.
read-only, inherited
- impl → QueryDelegate
-
read-only, inherited
- isSequential → bool
-
final, inherited
- logStatements ↔ bool
-
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
beginTransaction(
) → dynamic -
inherited
-
close(
) → Future< void> -
inherited
-
ensureOpen(
dynamic user) → Future< bool> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
runBatched(
dynamic statements) → Future< void> -
inherited
-
runCustom(
String statement, [List< Object?> ? args]) → Future<void> -
inherited
-
runDelete(
String statement, List< Object?> args) → Future<int> -
inherited
-
runInsert(
String statement, List< Object?> args) → Future<int> -
inherited
-
runSelect(
String statement, List< Object?> args) → Future<List< Map< >String, Object?> > -
inherited
-
runUpdate(
String statement, List< Object?> args) → Future<int> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited