class Cequel::Schema::UpdateTableDSL
DSL for describing a series of schema modification statements
Public Class Methods
apply(updater, &block)
click to toggle source
Describe a series of schema modifications and build a {TableUpdater} to encapsulate them
@param (see initialize) @yield a block evaluated in the context of an {UpdateTableDSL} instance @return [void]
@api private @see Keyspace#update_table
# File lib/cequel/schema/update_table_dsl.rb, line 19 def self.apply(updater, &block) dsl = new(updater) dsl.instance_eval(&block) end
new(updater)
click to toggle source
@param updater [TableUpdater]
@api private
# File lib/cequel/schema/update_table_dsl.rb, line 29 def initialize(updater) @updater = updater end