Sha256: 81dbfc71238146ef6dbd8cdfe1f34206e8d7f97e0a30521110f303338ee90d38

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

# encoding: utf-8

require_relative "cql_literal"

module QueryBuilder::CQL::Operators

  # Describes 'greater than' operator
  #
  # @example
  #   fn = Operators[:cql_gt, 3]
  #   fn[:foo]
  #   # => "foo > 3"
  #
  # @param [#to_s] column
  # @param [Numeric] value
  #
  # @return [String]
  #
  def self.cql_gt(column, value)
    "#{column} > #{cql_literal(value)}"
  end

end # module QueryBuilder::CQL::Operators

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
query_builder-0.0.4 lib/query_builder/cql/operators/cql_gt.rb
query_builder-0.0.3 lib/query_builder/cql/operators/cql_gt.rb
query_builder-0.0.2 lib/query_builder/cql/operators/cql_gt.rb
query_builder-0.0.1 lib/query_builder/cql/operators/cql_gt.rb