lib/cequel_cql2/data_set.rb
def select(*columns)
      options = columns.extract_options!.symbolize_keys
      clone.tap do |data_set|
        if columns.length == 1 && Range === columns.first
          range = columns.first
          options[:from] = range.first
          options[:to] = range.last
        else
          data_set.select_columns.concat(columns.flatten)
        end
        data_set.select_options.merge!(options)
      end
    end
#
# Select specified columns from this data set.
#
# @param *columns [Symbol,Array] columns to select
# @return [DataSet] new data set scoped to specified columns
#
Select specified columns from this data set.
Select specified columns from this data set .
def select(*columns)
      options = columns.extract_options!.symbolize_keys
      clone.tap do |data_set|
        if columns.length == 1 && Range === columns.first
          range = columns.first
          options[:from] = range.first
          options[:to] = range.last
        else
          data_set.select_columns.concat(columns.flatten)
        end
        data_set.select_options.merge!(options)
      end
    end
def select ( * columns ) options = columns . extract_options! . symbolize_keys clone . tap do | data_set | if columns . length == 1 && Range === columns . first range = columns . first options [ :from ] = range . first options [ :to ] = range . last else data_set . select_columns . concat ( columns . flatten ) end data_set . select_options . merge! ( options ) end end
Select specified columns from this data set.
Select specified columns from this data set .
new data set scoped to specified columns
new data set scoped to specified columns
DataSet
columns
*columns
columns to select
columns to select