class QueryBuilder::CQL::Statements::CreateColumn
Describes the ‘ALTER TABLE … ADD’ CQL3 statement
Public Instance Methods
to_s()
click to toggle source
Builds the statement
@return [String]
# File lib/query_builder/cql/statements/create_column.rb, line 18 def to_s cql[ "ALTER TABLE", context.table.to_s, "ADD", context.name, type, maybe_static ] end
Private Instance Methods
maybe_static()
click to toggle source
# File lib/query_builder/cql/statements/create_column.rb, line 27 def maybe_static "STATIC" if static end