ExistsExpression class final
An EXISTS (or NOT EXISTS) expression in SQL.
This expression evaluates the select statement and reports whether that statement would return any rows.
- Inheritance
-
- Object
- Expression<
bool> - ExistsExpression
- Available extensions
Constructors
-
ExistsExpression(BaseSelectStatement<
BaseSelectStatement, dynamic> select, {bool not = false}) -
Creates an ExistsExpression from the inner
selectstatement.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- not → bool
-
Whether this should be a
NOT EXISTSexpression instead.final - precedence → Precedence
-
The precedence of this expression. This can be used to automatically put
parentheses around expressions as needed.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
select
→ BaseSelectStatement<
BaseSelectStatement, dynamic> -
The inner select statement to run.
final
-
sqlType
→ SqlType<
bool> -
Resolves the SqlType implementation describing the type of this
expression.
no setterinherited
Methods
-
caseMatch<
R extends Object> ({required Map< Expression< when, Expression<bool> , Expression<R> >R> ? orElse}) → Expression<R> -
A
CASE WHENconstruct using the current expression as a base.inherited -
cast<
T2 extends Object> ([SqlType< T2> ? type]) → Expression<T2> -
Generates a
CAST(expression AS TYPE)expression.inherited -
compileWith(
StatementCompiler compiler) → void -
Compiles this component with the given StatementCompiler by invoking the
relevant
addmethod on it.override -
dartCast<
T2 extends Object> ({SqlType< T2> ? customType}) → Expression<T2> -
Casts this expression to an expression of
D.inherited -
equals(
bool compare) → Expression< bool> -
Whether this column is equal to the given value, which must have a fitting
type. The
comparevalue will be written as a variable using prepared statements, so there is no risk of an SQL-injection.inherited -
equalsExp(
Expression< bool> compare) → Expression<bool> -
Whether this expression is equal to the given expression.
inherited
-
equalsNullable(
bool? compare) → Expression< bool> -
Compares the value of this column to
compareornull.inherited -
iif(
Expression< bool> predicate, Expression<bool> ifFalse) → Expression<bool> -
Evaluates to
thisifpredicateis true, otherwise evaluates toifFalse.inherited -
isExp(
Expression< bool> other) → Expression<bool> -
Generates an
ISexpression in SQL, comparing this expression with theotherexpression.inherited -
isIn(
Iterable< bool> values) → Expression<bool> -
An expression that is true if
thisresolves to any of the values invalues.inherited -
isInExp(
List< Expression< expressions) → Expression<bool> >bool> -
An expression that evaluates to
trueif this expression resolves to a value that one of theexpressionsresolve to as well.inherited -
isInQuery(
BaseSelectStatement< BaseSelectStatement, dynamic> select) → Expression<bool> -
An expression checking whether
thisis included in any row of the providedselectstatement.inherited -
isNotExp(
Expression< bool> other) → Expression<bool> -
Generates an
IS NOTexpression in SQL, comparing this expression with theotherexpression.inherited -
isNotIn(
Iterable< bool> values) → Expression<bool> -
An expression that is true if
thisdoes not resolve to any of the values invalues.inherited -
isNotInExp(
List< Expression< expressions) → Expression<bool> >bool> -
An expression that evaluates to
trueif this expression does not resolve to any value that theexpressionsresolve to.inherited -
isNotInQuery(
BaseSelectStatement< BaseSelectStatement, dynamic> select) → Expression<bool> -
An expression checking whether
thisis not included in any row of the providedselectstatement.inherited -
isNotNull(
) → Expression< bool> -
Expression that is true if the inner expression resolves to a non-null
value.
inherited
-
isNotValue(
bool value) → Expression< bool> -
Generates an
IS NOTexpression in SQL, comparing this expression with the Dartvalue.inherited -
isNull(
) → Expression< bool> -
Expression that is true if the inner expression resolves to a null value.
inherited
-
isValue(
bool value) → Expression< bool> -
Generates an
ISexpression in SQL, comparing this expression with the Dartvalue.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
not(
) → Expression< bool> -
Available on Expression<
Negates this boolean expression. The returned expression is true ifbool> , provided by the BooleanExpressionOperators extensionthisis false, and vice versa. -
nullIf(
Expression< bool> matcher) → Expression<bool> -
Returns
nullifmatcheris equal to this expression,thisotherwise.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
variable(
bool? value) → Variable< bool> -
Creates a variable that is guaranteed to have the same SqlType as
this.inherited
Operators
-
operator &(
Expression< bool> other) → Expression<bool> -
Available on Expression<
Returns an expression that is true iff bothbool> , provided by the BooleanExpressionOperators extensionthisandotherare true. -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator |(
Expression< bool> other) → Expression<bool> -
Available on Expression<
Returns an expression that is true ifbool> , provided by the BooleanExpressionOperators extensionthisorotherare true.