module QueryBuilder::CQL::Modifiers::Column
Provides columns for CREATE TYPE statement
Public Instance Methods
add(name, type_name, options = {})
click to toggle source
Adds column to the table
@param [#to_s] name @param [#to_s] type_name @param [Hash] options @option options [Boolean] :static
@return [QueryBuilder::Core::Statement] updated statement
# File lib/query_builder/cql/modifiers/column.rb, line 20 def add(name, type_name, options = {}) self << Clause .new(name: name, type_name: type_name, static: options[:static]) end
Private Instance Methods
maybe_columns()
click to toggle source
# File lib/query_builder/cql/modifiers/column.rb, line 27 def maybe_columns "(#{(clauses(:column) + clauses(:primary_key)).compact.join(", ")})" end