Skip to content

kaievns/db-nuker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

DB Nuker

Faster database cleaner for MySQL

Usage

  1. Add it your gemfile
gem 'db-nuker'
  1. Create file spec/support/db_nuker.rb
RSpec.configure do |config|
  config.use_transactional_fixtures = false

  config.before(:suite) do
    DBNuker.boom!
  end

  config.after(:each) do
    DBNuker.boom!
  end
end
  1. Enjoy!

How Does It Work?

Pure magic!

No, Really?

It cleans only those tables that have records in them

Known Caveates

Doesn't reset the tables auto-increments. Well, you shouldn't rely on certain IDs in your tests anyways.

License & Copyright

All code in this repository is released under the terms of the MIT license

Copyright (C) 2014 Nikolay Nemshilov

About

Really fast database cleaner for mysql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages