Module: Influxdb::Arel::Visitor::WhereStatement

Included in:
DeleteStatement, SelectStatement
Defined in:
lib/influxdb/arel/visitor/where_statement.rb

Instance Method Summary collapse

Instance Method Details

#build_wheres(object) ⇒ Object



5
6
7
8
9
10
# File 'lib/influxdb/arel/visitor/where_statement.rb', line 5

def build_wheres(object)
  unless object.wheres.empty?
    result << WHERE
    result << object.wheres.map{|where| visitor.accept(where) }.join(AND)
  end
end