Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

db-nuker

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-nuker

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

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

Copyright (C) 2014 Nikolay Nemshilov

FAQs

Package last updated on 14 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc