The left side of the comparison.
The comparison operator to use. If unspecified, defaults to Op.eq.
The right side of the comparison. Its value depends on the used operator. See WhereOperators for information about what value is valid for each operator.
Generated using TypeDoc
A way of specifying "attr = condition". Can be used as a replacement for the POJO syntax (e.g.
where: { name: 'Lily' }
) when you need to compare a column that the POJO syntax cannot represent.Example
Example
Example
Example
// Using raw SQL as the left operand. // Equal to: WHERE 'Lily' = 'Lily' where(literal(
'Lily'
), Op.eq, 'Lily');