module Cassie::Statements::Statement::Deleting::ClassMethods

@!parse extend ClassMethods

Public Instance Methods

column(identifier) click to toggle source

Add a specific column to tombstone by this statement @param [String, Symbol] identifier the column to tombstone

# File lib/cassie/statements/statement/deleting.rb, line 40
def column(identifier)
  # @todo replace with Selection
  # Module and aliases?
  columns << identifier.to_s
end
columns() click to toggle source

The columns to be tombstoned from this statement @return [Array<String>] column names

# File lib/cassie/statements/statement/deleting.rb, line 48
def columns
  @columns ||= []
end
delete_from(table) { |self| ... } click to toggle source

DSL to set the statement type and table for deleting @param [String, Symbol] table The table to taret for the delete statement @return [void]

# File lib/cassie/statements/statement/deleting.rb, line 31
def delete_from(table)
  self.table = table
  self.type = :delete

  yield(self) if block_given?
end