Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

For a project, i need to be able to deploy it with either MySQL or MongoDB (I'm currently using mongoid for that). My question is, is it possible to make "standard" models (especially about the relations) to use either one database type or the other (It's not using both at the same time, but the possibility to start the project with one of them).

Also, is there a way to make the model know which db use, by like, testing the possible connection (ex, try the mysql connection, if it's not working, use the MongoDB one, or something like that)

share|improve this question
    
So, you're getting the intersection of features that work on both platforms? You can probably make it work in many cases, but you'll be playing to the strengths of neither platform. –  WiredPrairie Jul 11 '13 at 15:45
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.