class ROM::Cassandra::Commands::Delete
Implements the cassandra-specific Delete
command
@example
class DeleteColumns < ROM::Commands::Delete[:cassandra] dataset(:users) register_as(:delete_columns) def execute(id, *cols) super { delete(*cols).where(id: id).using(consistency: :quorum) } end end delete_columns = rom.command(:users).delete_columns delete_columns.call(1, :text)
@api public
Private Instance Methods
restriction()
click to toggle source
# File lib/rom/cassandra/commands/delete.rb, line 30 def restriction :delete_query end