DVSnapshotDatabaseAdapter class
The development database, kept in DVTableSnapshots so it survives the application closing.
This is how the web gets a persistent offline store. There is no SQLite in a browser, and the only database that ran there was the in-memory one: a store that worked for the whole session and was empty after the tab closed, with every write made offline in that session gone and nothing saying so.
Each write saves the table it touched before it returns, so a write that has returned has been kept. Reads save nothing.
- Implemented types
- Available extensions
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
-
classify(
DVSchemaChange change) → Future< DVSchemaChangeClass?> -
Available on DVDatabaseAdapter, provided by the DVDatabaseAdapterSchemaClassification extension
-
execute(
String sql, [List< Object?> ? params]) → Future<int> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
String sql, [List< Object?> ? params]) → Future<List< Map< >String, Object?> > -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
open(
DVTableSnapshots snapshots) → Future< DVSnapshotDatabaseAdapter> -
Opens the database
snapshotsholds.