Re:Fake2db – Generate fake but valid data-filled databases
by emillon on Wednesday December 17, 2014 @10:24AM
(#8762561)
Hi! Looks interesting. I usually use faker for this (https://github.com/joke2k/faker). How does fake2db compare to it?
[ Parent
| on HN ]
Re:Fake2db – Generate fake but valid data-filled databases
by makmanalp on Wednesday December 17, 2014 @10:31AM
(#8762581)
Faker is python-specific, and not really about creating databases, but of course you can tack that on easily. It also gives you specific values instead of a set schema and supports different languages. I use faker too, and my favourite is to tack it on to factory_boy (http://factoryboy.readthedocs.org/en/latest/) for unit testing data with random but reasonable values.
Maybe a cool idea is to merge these two projects or use faker to do the value generation part here, but add more stuff in this project that's about generating a consistent schema of related values - fake users that post fake posts from fake locations in a consistent manner.
edit: Actually it looks like this does use faker!
Re:Fake2db – Generate fake but valid data-filled databases
by pmontra on Wednesday December 17, 2014 @06:54PM
(#8765226)
Btw, they have counterparts in the Ruby world: https://github.com/stympy/faker (which states to be a port from Perl) and https://github.com/thoughtbot/factory_girl
I use them in a Rails db/seed.rb file to create a new dev db every time I need new data to play with, especially after changes to the schema.