FoundDartPlaceholder class
A Dart placeholder that will be bound to a dynamically-generated SQL node at runtime.
Moor supports injecting expressions, order by terms and clauses and limit clauses as placeholders. For insert statements, companions can be used as a Dart placeholder too.
- Inheritance
-
- Object
- FoundElement
- FoundDartPlaceholder
Constructors
-
FoundDartPlaceholder(DartPlaceholderType type, String name, List<
AvailableMoorResultSet> availableResultSets)
Properties
- astNode ↔ DartPlaceholder?
-
getter/setter pair
-
availableResultSets
→ List<
AvailableMoorResultSet> -
All result sets that are available for this Dart placeholder.
final
- dartParameterName → String
-
no setteroverride
- hasDefault → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasSqlName → bool
-
no setterinherited
-
If the element should be hidden from the parameter list
no setterinherited
- name → String
-
The name of this element as declared in the query
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → DartPlaceholderType
-
final
Methods
-
dartTypeCode(
[GenerationOptions options = const GenerationOptions()]) → String -
Dart code for a type representing tis element.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeAsScopedFunction(
MoorOptions options) → bool - Whether we should write this parameter as a function having available result sets as parameters.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override