Class: Cassie::Schema::CreateVersionsTableQuery
- Inherits:
-
Definition
- Object
- Definition
- Cassie::Schema::CreateVersionsTableQuery
- Defined in:
- lib/cassie/schema/queries/create_versions_table_query.rb
Instance Attribute Summary
Attributes included from Cassie::Statements::Execution::ClassMethods
Attributes included from Cassie::Statements::Statement
Instance Method Summary collapse
Methods included from Cassie::Statements::Core
Methods included from Cassie::Statements::Execution::ClassMethods
Methods included from Cassie::Statements::Execution
#execute, #execute!, #execution_options
Methods included from Cassie::Statements::Execution::Instrumentation
Methods included from Cassie::Statements::Execution::PartitionLinking
#build_partition_linker, #execute, #partition_linker?
Methods included from Cassie::Statements::Execution::Callbacks
Methods included from Cassie::Statements::Execution::Consistency
Methods included from Cassie::Statements::Statement
Methods included from Cassie::Statements::Statement::Preparation::ClassMethods
#prepare, #prepare=, #prepare?
Methods included from Cassie::Statements::Statement::Idempotency::ClassMethods
#idempotent, #idempotent=, #idempotent?, #non_idempotent
Methods included from Cassie::Statements::Statement::Idempotency
Methods included from Cassie::Statements::Statement::TypeHinting::ClassMethods
Methods included from Cassie::Statements::Statement::TypeHinting
Methods included from Cassie::Statements::Statement::Preparation
Methods included from Connection
Methods included from Connection::ClassMethods
Instance Method Details
#keyspace ⇒ Object
20 21 22 |
# File 'lib/cassie/schema/queries/create_versions_table_query.rb', line 20 def keyspace Cassie::Schema.schema_keyspace end |
#statement ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cassie/schema/queries/create_versions_table_query.rb', line 5 def statement %( CREATE TABLE IF NOT EXISTS #{Cassie::Schema.versions_table} ( application text, env text, id timeuuid, number text, description text, executor text, executed_at timestamp, PRIMARY KEY ((application, env), id) ) WITH CLUSTERING ORDER BY (id DESC); ) end |