lib/no_brainer/database.rb
# Note that truncating each table (purge) is much faster than dropping the
# database (drop)
Note that truncating each table (purge) is much faster than dropping the
database (drop)
Note that truncating each table ( purge ) is much faster than dropping the database ( drop )
def purge!(options={})
    table_list.each do |table_name|
      NoBrainer.run { |r| r.table(table_name).delete }
    end
    true
  rescue RuntimeError => e
    raise e unless e.message =~ /No entry with that name/
  end
def purge! ( options = { } ) table_list . each do | table_name | NoBrainer . run { | r | r . table ( table_name ) . delete } end true rescue RuntimeError => e raise e unless e . message =~ / No entry with that name / end
Note that truncating each table (purge) is much faster than dropping the
database (drop)
Note that truncating each table ( purge ) is much faster than dropping the database ( drop )
options
<not_specific>