module Cassie::Schema
Contains interface and components for managing Cassandra schema using semantically versioned, incremental migration files.
-
Versioned migration files are stored in-repo in ruby files defining
up
anddown
mutation methods. -
Data about what migrations have been applied is stored in Cassandra persistence.
-
The schema state is stored in an in-repo schema file that contains the CQL required to recreate the current schema state/version from scratch.
-
Various
cassie
executable commands provide an interface to manage migrations and versioning.
Run +cassie –help+ to see a list of commands and their descriptions for managing the schema through versioned migrations.
@see file:lib/cassie/schema/README.md Schema
README for information on task usage and the migration DSL.
Public Class Methods
The application namespace. Only applicaple When cassie manages multiple application schemas within the same cluster. @return [String] the application namespace
# File lib/cassie/schema.rb, line 27 def self.application return @application if defined?(@application) "global" end
# File lib/cassie/schema.rb, line 32 def self.application=(app_name) @application = app_name end