Class: IsNull

Inherits:
Expression show all
Defined in:
lib/eno.rb

Instance Attribute Summary

Attributes inherited from Expression

#members, #props

Instance Method Summary collapse

Methods inherited from Expression

#!=, #%, #&, #*, #+, #-, #/, #<, #<=, #==, #>, #>=, #as, #desc, #initialize, #inner_join, #join, #not_null?, #null?, #over, quote, #|

Constructor Details

This class inherits a constructor from Expression

Instance Method Details

#!@Object


172
173
174
# File 'lib/eno.rb', line 172

def !@
  IsNotNull.new(members[0])
end

#to_sqlObject


168
169
170
# File 'lib/eno.rb', line 168

def to_sql
  "(#{Expression.quote(@members[0])} is null)"
end