Method: FalseClass#sql_expr
- Defined in:
- lib/sequel/extensions/sql_expr.rb
#sql_expr ⇒ Object
Returns a copy of the object wrapped in a Sequel::SQL::BooleanExpression, allowing easy use of Sequel’s DSL:
false.sql_expr & :a # FALSE AND a
52 53 54 |
# File 'lib/sequel/extensions/sql_expr.rb', line 52 def sql_expr Sequel::SQL::BooleanExpression.new(:NOOP, self) end |