Module: DatastaxRails::Cql

Extended by:
ActiveSupport::Autoload
Defined in:
lib/datastax_rails/cql.rb,
lib/datastax_rails/cql/base.rb,
lib/datastax_rails/cql/delete.rb,
lib/datastax_rails/cql/insert.rb,
lib/datastax_rails/cql/select.rb,
lib/datastax_rails/cql/update.rb,
lib/datastax_rails/cql/truncate.rb,
lib/datastax_rails/cql/drop_index.rb,
lib/datastax_rails/cql/consistency.rb,
lib/datastax_rails/cql/create_index.rb,
lib/datastax_rails/cql/transactions.rb,
lib/datastax_rails/cql/use_keyspace.rb,
lib/datastax_rails/cql/column_family.rb,
lib/datastax_rails/cql/drop_keyspace.rb,
lib/datastax_rails/cql/create_keyspace.rb,
lib/datastax_rails/cql/drop_column_family.rb,
lib/datastax_rails/cql/alter_column_family.rb,
lib/datastax_rails/cql/create_column_family.rb

Overview

The Cql classes handle all of the generation of CQL. They are constructed in such a way that the statement can be built up over multiple calls before generating the actual CQL.

TODO: Add examples

Defined Under Namespace

Modules: Consistency, Transactions Classes: AlterColumnFamily, Base, ColumnFamily, CreateColumnFamily, CreateIndex, CreateKeyspace, Delete, DropColumnFamily, DropIndex, DropKeyspace, Insert, Select, Truncate, Update, UseKeyspace

Class Method Summary collapse

Class Method Details

.for_class(klass) ⇒ Object


9
10
11
12
# File 'lib/datastax_rails/cql.rb', line 9

def for_class(klass)
  @cql ||= {}
  @cql[klass] ||= DatastaxRails::Cql::ColumnFamily.new(klass)
end