amatsuda / database_rewinder

minimalist's tiny and ultra-fast database cleaner
MIT License
807 stars 91 forks source link

Pause functionality #29

Closed milessa42 closed 7 years ago

milessa42 commented 9 years ago

This should hopefully be a simple addition to DatabaseRewinder. I've made it so that a 'pause' method is available to skip cleaning for an arbitrary amount of time, and a 'resume' method is available to resume cleaning as normal.

I use DatabaseRewinder at work, and I've had a few feature cases where having such a function would be great (IE: Feature tests, especially using JS).