Class: ROM::Cassandra::Commands::Batch
- Inherits:
-
ROM::Command
- Object
- ROM::Command
- ROM::Cassandra::Commands::Batch
- Includes:
- ROM::Cassandra::Commands
- Defined in:
- lib/rom/cassandra/commands/batch.rb
Overview
Implements the cassandra-specific Batch command
Instance Method Summary collapse
-
#keyspace(name) ⇒ ROM::Cassandra::Query
Returns the keyspace context for lazy queries.
Methods included from ROM::Cassandra::Commands
#execute, included, #initialize
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ROM::Cassandra::Commands
Instance Method Details
#keyspace(name) ⇒ ROM::Cassandra::Query
Returns the keyspace context for lazy queries.
The method can be used within a block of [#execute] to prepare commands for adding to the batch.
40 41 42 |
# File 'lib/rom/cassandra/commands/batch.rb', line 40 def keyspace(name) Query.new.keyspace(name) end |