QueryAdapter class
This class knows how to execute database queries.
Constructors
-
QueryAdapter(DatabaseExecutor database, [StreamController<
String> ? changeListener])
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query<
T> (String sql, {List< Object> ? arguments, required T mapper(Map<String, Object?> )}) → Future<T?> - Executes a SQLite query that may return a single value.
-
queryList<
T> (String sql, {List< Object> ? arguments, required T mapper(Map<String, Object?> )}) → Future<List< T> > - Executes a SQLite query that may return multiple values.
-
queryListStream<
T> (String sql, {List< Object> ? arguments, required String queryableName, required bool isView, required T mapper(Map<String, Object?> )}) → Stream<List< T> > - Executes a SQLite query that returns a stream of multiple query results.
-
queryNoReturn(
String sql, {List< Object> ? arguments}) → Future<void> -
queryStream<
T> (String sql, {List< Object> ? arguments, required String queryableName, required bool isView, required T mapper(Map<String, Object?> )}) → Stream<T?> -
Executes a SQLite query that returns a stream of single query results
or
null
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited