amatsuda / database_rewinder

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

Implement handy interface for configuring filtered tables #20

Open deeeki opened 10 years ago

deeeki commented 10 years ago

handy interface for configuring :except and :only discussed #18 and asakusa.rb meetup.

# Usage
DatabaseRewinder.filter_options = { except: ["foos"] }
DatabaseRewinder.clean_all

I named filter_options=, but I'll leave other candidates :memo:

estevaoam commented 9 years ago

Hey guys, is this happening or what? This is very important. :+1:

mknapik commented 8 years ago

:+1: for merging. It'll be very useful.

scarfacedeb commented 8 years ago

Any news on this one?

amatsuda commented 8 years ago

I agree that we need this interface. I'd love to merge this as soon as we come up with a good name. Any more suggestions?

scarfacedeb commented 8 years ago

What about plain DatabaseRewinder.tables = {}?

estevaoam commented 8 years ago

Both DatabaseRewinder.tables and DatabaseRewinder.filter_table_options are good names. Nevertheless, the functionality is way more important than the naming IMO.