Class: QueryBuilder::CQL::Statements::Select

Overview

Describes the ‘SELECT’ CQL3 statement

Instance Method Summary collapse

Methods included from Modifiers::AllowFiltering

#allow_filtering

Methods included from Modifiers::Limit

#limit

Methods included from Modifiers::Distinct

#distinct

Methods included from Modifiers::Order

#order

Methods included from Modifiers::WhereClustered

#where_clustered

Methods included from Modifiers::Where

#where

Methods included from Modifiers::Count

#count

Methods included from Modifiers::Selected

#select

Methods included from Operators

cql, cql_composite, cql_dec, cql_element, cql_entries, cql_frozen, cql_full, cql_gt, cql_gte, cql_in, cql_inc, cql_keys, cql_list, cql_literal, cql_lt, cql_lte, cql_map, cql_set, cql_token, cql_token_value, cql_ttl, cql_tuple, cql_tuple_value, cql_writetime

Methods inherited from QueryBuilder::Core::Statement

#<<, #clauses, #initialize

Methods inherited from QueryBuilder::Core::Base

#initialize

Constructor Details

This class inherits a constructor from QueryBuilder::Core::Statement

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class QueryBuilder::CQL::Operators

Instance Method Details

#to_sString

Builds the statement

Returns:

  • (String)


24
25
26
27
28
29
# File 'lib/query_builder/cql/statements/select.rb', line 24

def to_s
  cql[
    "SELECT", maybe_distinct, maybe_selected, "FROM", context.to_s,
    maybe_where, maybe_order, maybe_limit, maybe_filter
  ]
end