Class: Cequel::Schema::Patch

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/cequel/schema/patch.rb

Overview

The set of changes needed to transform a table from its current form to a desired form. `Patch`es are immutable.

Since:

  • 1.0.0

Defined Under Namespace

Classes: AbstractChange, AddColumn, AddIndex, DropIndex, RenameColumn, SetTableProperties

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#changesObject (readonly)

Since:

  • 1.0.0


15
16
17
# File 'lib/cequel/schema/patch.rb', line 15

def changes
  @changes
end

Instance Method Details

#statementsObject

Since:

  • 1.0.0


19
20
21
# File 'lib/cequel/schema/patch.rb', line 19

def statements
  changes.map(&:to_cql)
end