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
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, {bool onlyOpenVfs = false}) → Future< Database> -
Connects to a database identified by its
name
stored undertype
and accessed via the givenaccess
mode. -
connectToRecommended(
String name, {bool onlyOpenVfs = false}) → 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
-
connectToPort(
SqliteWebEndpoint endpoint) → Future< Database> - Connects to an endpoint previously obtained with Database.additionalConnection.
-
open(
{required Uri worker, required Uri wasmModule}) → WebSqlite -
Opens a WebSqlite instance by connecting to the given
worker
and using thewasmModule
url to load sqlite3. -
workerEntrypoint(
{required DatabaseController controller}) → void - Entrypoints for workers hosting datbases.