lib/influxer/metrics/relation/where_clause.rb
def build_range(key, val, negate)
      if val.exclude_end?
        # begin...end range
        if negate
          "#{key} < #{quoted(val.begin)} or #{key} >= #{quoted(val.end)}"
        else
          "#{key} >= #{quoted(val.begin)} and #{key} < #{quoted(val.end)}"
        end
      else
        # begin..end range
        if negate
          "#{key} < #{quoted(val.begin)} or #{key} > #{quoted(val.end)}"
        else
          "#{key} >= #{quoted(val.begin)} and #{key} <= #{quoted(val.end)}"
        end
      end
    end
#:nodoc:
# accepts hash or strings conditions
:nodoc:
accepts hash or strings conditions
: nodoc : accepts hash or strings conditions
def build_range(key, val, negate)
      if val.exclude_end?
        if negate
          "#{key} < #{quoted(val.begin)} or #{key} >= #{quoted(val.end)}"
        else
          "#{key} >= #{quoted(val.begin)} and #{key} < #{quoted(val.end)}"
        end
      else
        if negate
          "#{key} < #{quoted(val.begin)} or #{key} > #{quoted(val.end)}"
        else
          "#{key} >= #{quoted(val.begin)} and #{key} <= #{quoted(val.end)}"
        end
      end
    end
def build_range ( key , val , negate ) if val . exclude_end? if negate "#{key} < #{quoted(val.begin)} or #{key} >= #{quoted(val.end)}" else "#{key} >= #{quoted(val.begin)} and #{key} < #{quoted(val.end)}" end else if negate "#{key} < #{quoted(val.begin)} or #{key} > #{quoted(val.end)}" else "#{key} >= #{quoted(val.begin)} and #{key} <= #{quoted(val.end)}" end end end
:nodoc:
accepts hash or strings conditions
: nodoc : accepts hash or strings conditions
# begin...end range # begin..end range
key
val
negate