Module: Sequel::SQL::BooleanMethods

Included in:
LiteralString, BooleanExpression, GenericComplexExpression, GenericExpression, Symbol
Defined in:
lib/sequel/lib/sequel/sql.rb

Overview

This module includes the methods that are defined on objects that can be used in a boolean context in SQL (Symbol, LiteralString, SQL::Function, and SQL::BooleanExpression).

This defines the ~ (NOT), & (AND), and | (OR) methods.

Instance Method Summary collapse

Instance Method Details

#~Object

Create a new BooleanExpression with NOT, representing the inversion of whatever self represents.


164
165
166
# File 'lib/sequel/lib/sequel/sql.rb', line 164

def ~
  BooleanExpression.invert(self)
end