Sha256: d0e11312d282449c37bed637e5d467fdaf82c73d37aa4ca8182e5c19eedea0b5
Contents?: true
Size: 602 Bytes
Versions: 4
Compression:
Stored size: 602 Bytes
Contents
# encoding: utf-8 module QueryBuilder::CQL module Statements # Describes the 'ALTER TABLE ... ADD' CQL3 statement # class CreateColumn < Base attribute :type, required: :true attribute :static # Builds the statement # # @return [String] # def to_s cql[ "ALTER TABLE", context.table.to_s, "ADD", context.name, type, maybe_static ] end private def maybe_static "STATIC" if static end end # class CreateColumn end # module Statements end # module QueryBuilder::CQL
Version data entries
4 entries across 4 versions & 1 rubygems