amatsuda / database_rewinder

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

retain existing data in tables #30

Closed murtyk closed 9 years ago

murtyk commented 9 years ago

Hi,

Is there a configuration option to retain records existing before the test run? Say, table accounts has 3 records with ids: 1, 2, 3. During a js: true test, new records with ids 4 and 5 get inserted in accounts table. After the test complete, can the db rewinder delete all records in accounts with id > 3?

amatsuda commented 9 years ago

Hrm, interesting, but no, there're no such feature. Feel free to work on a PR if you think you really need it :)