4 ms·
Hi! Looks interesting. I usually use faker for this (https://github.com/joke2k/faker https://github.com/joke2k/faker). How does fake2db compare to it?
by emillon 12y ago
Hi! Looks interesting. I usually use faker for this (https://github.com/joke2k/faker https://github.com/joke2k/faker). How does fake2db compare to it?
- makmanalp 12y agoFaker 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/ 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!
- emillon 12y agoOh, makes sense. I did not see that this is a bridge between DBs and faker. Mixer does something similar directly on top of sqlalchemy if I recall correctly.
- pmontra 12y agoBtw, they have counterparts in the Ruby world: https://github.com/stympy/faker https://github.com/stympy/faker (which states to be a port from Perl) and https://github.com/thoughtbot/factory_girl 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.