Module: Sequel::SQL::BooleanMethods

Included in:
BooleanExpression, ComplexExpressionMethods
Defined in:
lib/sequel_core/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.



160
161
162
# File 'lib/sequel_core/sql.rb', line 160

def ~
  BooleanExpression.invert(self)
end