SqliteOpfsDatabase class
One open SQLite database in OPFS, kept by its own dedicated worker.
FirebaseFirestore runs its own SQL through it. Like SqliteWebDatabase it holds
the Web Lock of the database while it is open (ExclusiveDatabase).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → String
-
The OPFS directory of the database.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
whenClosed
→ Future<
void> -
Completes when close has ended the worker and released the lock (at
once when it was not called). Never fails.
no setter
Methods
-
clearStorage(
) → Future< void> -
Deletes the OPFS directory (and an IndexedDB database of the same name
that may be left from before), for
FirebaseFirestore.clearPersistence. -
close(
) → void - Closes the connection. Firestore calls it when the instance terminates.
-
delete(
String statement, [List< Object?> ? arguments]) → Future<int> - Runs a DELETE and returns the number of rows it removed.
-
execute(
String statement, [List< Object?> ? arguments]) → Future<void> - Runs SQLite statement without return values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
String statement, [List< Object?> ? arguments]) → Future<List< Map< >String, dynamic> > - SELECT query
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited