WebSqlite class abstract

Provides asynchronous access to databases hosted in web workers.

Please see the readme of the sqlite3_web package for an overview on how to set up and use this package.

Constructors

WebSqlite()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect(String name, StorageMode type, AccessMode access) Future<Database>
Connects to a database identified by its name stored under type and accessed via the given access mode.
connectToRecommended(String name) Future<ConnectToRecommendedResult>
Starts a feature detection via runFeatureDetection and then connects to the best database available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runFeatureDetection({String? databaseName}) Future<FeatureDetectionResult>
Tries to find features related to storing and accessing databases.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

open({required Uri worker, required Uri wasmModule}) WebSqlite
Opens a WebSqlite instance by connecting to the given worker and using the wasmModule url to load sqlite3.
workerEntrypoint({required DatabaseController controller}) → void
Entrypoints for workers hosting datbases.