ExclusiveDatabase class abstract interface

A Database that no other client can have open at the same time: its opener holds an exclusive lock for as long as the database is open, and the lock is released when the client is gone, however it ends (a Web Lock in a browser, as the example opener for the web takes: a page that is reloaded or closed loses it).

Firestore then knows that every other client that left something in the cache is gone. In particular it sends the pending writes that a previous page left behind right away, instead of waiting until that client has not been seen for a minute (see "Multiple clients on one cache" in the guides).

Only implement it for a lock that excludes every other client of the database, in any tab, isolate or process.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
path → String
The path (or, where there is no file system, the name) this database was opened with.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the connection. Firestore calls it when the instance terminates.
inherited
delete(String statement, [List<Object?>? arguments]) → Future<int>
DELETE query Returns the number of changes made
inherited
execute(String statement, [List<Object?>? arguments]) → Future<void>
Runs SQLite statement without return values
inherited
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
inherited
toString() → String
A string representation of this object.
inherited

Operators

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