class Believer::Delete
Creates CQL DELETE statements
Public Instance Methods
to_cql()
click to toggle source
Creates the CQL
# File lib/believer/delete.rb, line 6 def to_cql cql = "DELETE FROM #{record_class.table_name}" cql << " WHERE #{wheres.map { |wc| "#{wc.to_cql}" }.join(' AND ')}" if wheres.any? cql end