PluckQuery<T, V extends Object> class final

The values of one column (SELECT column), optionally distinct.

Implemented types

Properties

column → Field<V>
The column read.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statement → SelectStatement
The statement this query sends.
no setter
unique → bool
Equal values are returned once.
final

Methods

asStream() → Stream<Result<List<V?>, DbError>>
Creates a Stream containing the result of this future.
inherited
catchError(Function onError, {bool test(Object error)?}) → Future<Result<List<V?>, DbError>>
Handles errors emitted by this Future.
inherited
distinct() → PluckQuery<T, V>
Each value once (SELECT DISTINCT column); 1 equals 1.0.
load(QueryExecutor on) → Future<Result<List<V?>, DbError>>
The values in on, another database than the one of the table (awaiting the query reads that one), in the query's order; null where a row has none.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
then<S>(FutureOr<S> onValue(Result<List<V?>, DbError> value), {Function? onError}) → Future<S>
Register callbacks to be called when this future completes.
inherited
timeout(Duration timeLimit, {FutureOr<Result<List<V?>, DbError>> onTimeout()?}) → Future<Result<List<V?>, DbError>>
Stop waiting for this future after timeLimit has passed.
inherited
toString() → String
A string representation of this object.
inherited
whenComplete(FutureOr<void> action()) → Future<Result<List<V?>, DbError>>
Registers a function to be called when this future completes.
inherited

Operators

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