Database class abstract

A connection to one SQLite database, returned by an OpenDatabase function. This is the only part of the SQLite layer that is public: you implement it over the SQLite binding of your choice; Firestore runs its own SQL through it.

Statements use ? positional placeholders; arguments may contain null, int, double, String and Uint8List values.

Constructors

Database()
Constructor for subclasses.

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 setter
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.
delete(String statement, [List<Object?>? arguments]) → Future<int>
DELETE query Returns the number of changes made
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