News for hackers. Stuff that matters.
Re:Fake2db – Generate fake but valid data-filled databases by wowoc on Wednesday December 17, 2014 @03:29PM (#8764152)
Some time ago, I wrote a simple tool (command line and C++ library) for generating random data for the same purpose. You basically specify a regular expression and the random strings on output match that regexp. Link: https://github.com/vrok/randodo
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?
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.
Re:Fake2db – Generate fake but valid data-filled databases by emillon on Wednesday December 17, 2014 @10:46AM (#8762653)
Oh, 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.
Re:Fake2db – Generate fake but valid data-filled databases by emirozer on Wednesday December 17, 2014 @08:48AM (#8762250)
Author here, I am a rather newcomer to OSS projects and development. Any criticism is highly appreciated. Have a beautiful day !
Re:Fake2db – Generate fake but valid data-filled databases by jrullmann on Wednesday December 17, 2014 @06:02PM (#8764956)
Nice utility. I submitted a pull request for FoundationDB SQL Layer https://github.com/emirozer/fake2db/pull/4
Re:Fake2db – Generate fake but valid data-filled databases by at-fates-hands on Wednesday December 17, 2014 @03:47PM (#8764248)
I'm starting to learn and use MongoDB quite a bit and this one thing I tend to struggle with is getting enough data into a DB to test and run queries on. I'll be happy to give this a go.
Re:Fake2db – Generate fake but valid data-filled databases by folz on Wednesday December 17, 2014 @05:26PM (#8764741)
emirozer (the author), you're marked as [dead], which means that your comments are hidden by default and nobody can reply to you. Try emailing [email protected] and see if a moderator can sort that out.
Re:Fake2db – Generate fake but valid data-filled databases by ogzd on Wednesday December 17, 2014 @08:34AM (#8762208)
it would have been better if you can predefine DDLs.
Re:Fake2db – Generate fake but valid data-filled databases by SloopJon on Wednesday December 17, 2014 @09:30AM (#8762364)
It seems like this project is basically just fake-factory applied to a few different databases. It doesn't look that useful on its own, but it's a nice demo of those packages.
Re:Fake2db – Generate fake but valid data-filled databases by beardo on Wednesday December 17, 2014 @09:35AM (#8762379)
I think it's very handy, saves me from writing seeders for my projects
Re:Fake2db – Generate fake but valid data-filled databases by briandear on Wednesday December 17, 2014 @03:30PM (#8764159)
Using Faker with Fabrication is pretty swell as well. You'd already have Fabricators defined for your tests, so you just call the Fabricator however many time you need in your seed file and you're done.
Re:Fake2db – Generate fake but valid data-filled databases by i_ride_bart on Wednesday December 17, 2014 @10:06AM (#8762478)
Hellyeah gonna try this out!
Re:Fake2db – Generate fake but valid data-filled databases by beardo on Wednesday December 17, 2014 @09:18AM (#8762325)
+1