class Sequel::SQL::BooleanExpression

  1. lib/sequel/sql.rb
Superclass: ComplexExpression

Subclass of ComplexExpression where the expression results in a boolean value in SQL.

Methods

Public Instance

  1. &
  2. |
  3. sql_boolean

Included modules

  1. BooleanMethods

Public Instance methods

&(ce)

Always use an AND operator for & on BooleanExpressions

[show source]
     # File lib/sequel/sql.rb
1185 def &(ce)
1186   BooleanExpression.new(:AND, self, ce)
1187 end
|(ce)

Always use an OR operator for | on BooleanExpressions

[show source]
     # File lib/sequel/sql.rb
1190 def |(ce)
1191   BooleanExpression.new(:OR, self, ce)
1192 end
sql_boolean()

Return self instead of creating a new object to save on memory.

[show source]
     # File lib/sequel/sql.rb
1195 def sql_boolean
1196   self
1197 end