SQLConditionExpression
Class: SQLConditionExpression
Defined in: packages/sql/src/relational/comparison.ts:138
A condition rendered in SQL by the repository: the sub-query of a link collection, the key parts of a composite reference
Extends
Expression<"SQL">
Constructors
Constructor
new SQLConditionExpression(
sql):SQLConditionExpression
Defined in: packages/sql/src/relational/comparison.ts:143
Create a new SQLConditionExpression instance
Parameters
sql
string
the condition
Returns
SQLConditionExpression
Overrides
WebdaQL.Expression<"SQL">.constructor
Properties
operator
operator:
"SQL"
Defined in: packages/ql/lib/query.d.ts:408
Operator
Inherited from
WebdaQL.Expression.operator
sql
protectedreadonlysql:string
Defined in: packages/sql/src/relational/comparison.ts:143
the condition
Methods
eval()
eval():
boolean
Defined in: packages/sql/src/relational/comparison.ts:151
Only the database evaluates the condition
Returns
boolean
never
Overrides
WebdaQL.Expression.eval
isDynamic()
isDynamic():
boolean
Defined in: packages/sql/src/relational/comparison.ts:167
Check whether dynamic
Returns
boolean
false: the values are already rendered
Overrides
WebdaQL.Expression.isDynamic
toString()
toString():
string
Defined in: packages/sql/src/relational/comparison.ts:159
Return a string representation of this instance
Returns
string
the SQL condition
Overrides
WebdaQL.Expression.toString