equals method

Expression<bool> equals(
  1. S compare
)
inherited

Whether this column is equal to the given value, which must have a fitting type. The compare value will be written as a variable using prepared statements, so there is no risk of an SQL-injection.

This method only supports comparing the value of the column to non- nullable values and translates to a direct = comparison in SQL. To compare this column to null, use isValue.

Implementation

Expression<bool> equals(T compare) => equalsExp(variable(compare));