class CouchdbToSql::TableDestroyer
The table destroyer will go through a table definition and make sure that all rows that belong to the document's id are deleted from the system.
Public Instance Methods
execute()
click to toggle source
# File lib/couchdb_to_sql/table_destroyer.rb, line 11 def execute dataset = handler.database[table_name] dataset.where(key_filter).delete end
key_filter()
click to toggle source
# File lib/couchdb_to_sql/table_destroyer.rb, line 16 def key_filter { primary_key => handler.id } end