InTransactionQuery class
A special kind of query running multiple inner queries in a transaction.
Constructors
-
InTransactionQuery(List<
SqlQuery> innerQueries, String name)
Properties
- declaredInMoorFile ↔ bool
-
Whether this query was declared in a
.moor
file.getter/setter pairinherited -
elements
→ List<
FoundElement> -
Union of variables and placeholders, but in the order in which they
appear inside the query.
finalinherited
- fromContext → AnalysisContext?
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMultipleTables → bool
-
Whether the underlying sql statement of this query operates on more than
one table. In that case, column references in Dart placeholders have to
write their table name (e.g.
foo.bar
instead of justbar
).finalinherited -
innerQueries
→ List<
SqlQuery> -
final
-
lints
↔ List<
AnalysisError> ? -
getter/setter pairinherited
- name → String
-
finalinherited
-
placeholders
↔ List<
FoundDartPlaceholder> -
The placeholders in this query which are bound and converted to sql at
runtime. For instance, in
SELECT * FROM tbl WHERE $expr
, theexpr
is going to be aFoundDartPlaceholder
with the type ExpressionDartPlaceholderType and ColumnType.boolean. We will generate a method which has aExpression<bool, BoolType> expr
parameter.getter/setter pairinherited - resultClassName → String
-
no setterinherited
- resultSet → InferredResultSet?
-
The result set of this statement, mapped to moor-generated classes.
no setteroverride
- root → AstNode?
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sql → String?
-
no setterinherited
-
variables
↔ List<
FoundVariable> -
The variables that appear in the sql query. We support three kinds of
sql variables: The regular "?" variables, explicitly indexed "?xyz"
variables and colon-named variables. Even though this feature is not
supported by sqlite directly, we provide syntax sugar for expressions like
column IN ?
, where the variable will have a List type at runtime and expand to the appropriate tuple (e.g.column IN (?, ?, ?)
when the variable is bound to a list with three elements). To make the desugaring easier at runtime, we require that:getter/setter pairinherited
Methods
-
elementsWithNestedQueries(
) → List< FoundElement> -
Returns all found elements, from this query an all nested queries. The
elements returned by this method are in no particular order, thus they
can only be used to determine the method parameters.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resultTypeCode(
[GenerationOptions options = const GenerationOptions()]) → String -
The Dart type representing a row of this result set.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited