BaseSelectStatement<Row> class abstract

The abstract base class for all select statements in the drift api.

Users are not allowed to extend, implement or mix-in this class.

Inheritance
Mixed-in types
Implementers
Annotations
  • @sealed

Constructors

BaseSelectStatement.new()

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

asyncMap<N>(FutureOr<N> mapper(Row)) Selectable<N>
Maps this selectable by the mapper function.
inherited
get() Future<List<Row>>
Executes this statement and returns the result.
inherited
getSingle() Future<Row>
Executes this statement, like Selectable.get, but only returns one value. the query returns no or too many rows, the returned future will complete with an error.
inherited
getSingleOrNull() Future<Row?>
Executes this statement, like Selectable.get, but only returns one value. If the result too many values, this method will throw. If no row is returned, null will be returned instead.
inherited
map<N>(N mapper(Row)) Selectable<N>
Maps this selectable by the mapper function.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
watch() Stream<List<Row>>
Creates an auto-updating stream of the result that emits new items whenever any table used in this statement changes.
inherited
watchSingle() Stream<Row>
Creates an auto-updating stream of this statement, similar to Selectable.watch. However, it is assumed that the query will only emit one result, so instead of returning a Stream<List<T>>, this returns a Stream<T>. If, at any point, the query emits no or more than one rows, an error will be added to the stream instead.
inherited
watchSingleOrNull() Stream<Row?>
Creates an auto-updating stream of this statement, similar to Selectable.watch. However, it is assumed that the query will only emit one result, so instead of returning a Stream<List<T>>, this returns a Stream<T?>. If the query emits more than one row at some point, an error will be emitted to the stream instead. If the query emits zero rows at some point, null will be added to the stream instead.
inherited
writeInto(GenerationContext context) → void
Writes this component into the context by writing to its GenerationContext.buffer or by introducing bound variables. When writing into the buffer, no whitespace around the this component should be introduced. When a component consists of multiple composed component, it's responsible for introducing whitespace between its child components.
inherited

Operators

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