SingleTableQueryMixin<T extends HasResultSet, D> mixin
Null safety
Mixin for a Query that operates on a single primary table only.
- Superclass Constraints
- Query<
T, D>
- Query<
- Mixin Applications
Properties
- database ↔ DatabaseConnectionUser
-
The database this statement should be sent to.
@protected, read / write, inherited
-
table
↔ ResultSetImplementation<
T, D> -
The (main) table or view that this query operates on.
read / write, inherited
- whereExpr ↔ Where?
-
The
WHERE
clause for this statement@protected, read / write, inherited - orderByExpr ↔ OrderBy?
-
The
ORDER BY
clause for this statement@protected, read / write, inherited - limitExpr ↔ Limit?
-
The
LIMIT
clause for this statement.@protected, read / write, inherited - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
where(
Expression< bool?> filter(T tbl)) → void -
Makes this statement only include rows that match the
filter
. [...] -
writeStartPart(
GenerationContext ctx) → void -
Subclasses must override this and write the part of the statement that
comes before the where and limit expression..
@visibleForOverriding, 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 -
constructQuery(
) → GenerationContext -
Constructs the query that can then be sent to the database executor. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited