I'm developing a sinatra app. I have it configured to use sqlite3 when developing on my local machine and mysql in production. I would like to write a rake task to copy the data from my production db into my local sqlite3 db. I assume this is easy in datamapper, but I'm not sure how to do it. I was thinking of setting up two data repositories and using the copy method to copy each table's data from one store to the other. It would be nice if I had a way of iterating over all the models in a database. Is there a way to do this in dm?
Thanks, Carl -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
