jasonhinkle / phreeze

Phreeze Framework for PHP
http://phreeze.com/
GNU Lesser General Public License v2.1
377 stars 166 forks source link

Support for Mongodb in Phreeze #146

Open sseshachala opened 10 years ago

sseshachala commented 10 years ago

Is there a seamless way to connect to Mongodb for some crud operations? I am currently trying to build Doc based app and mongodb is more suitable for storing documents.

Then user auth, keys and some transaction related stuff in mysql. I am able to make mongodb driver available within the app. If I have to manually override the boiler plate code, I can, but just checking if there are other modules or ideas from experts here

Thanks sudhi

jasonhinkle commented 10 years ago

Phreeze is DB agnostic but I haven't written a "driver" for it. I actually started thinking about that last month and did some preliminary work. I think it would be a subset of mongo DB since mongo isn't really a relational database and Phreeze provides an Object-Relational-Mapping system. So it would probably force you to use mongo in a more "strict" way as far as storing data consistently.

If you or anybody has an interest in writing a driver I would be glad to help. If you look in the phreeze/libs/verysimple/DB/DataDriver folder you'll see an interface that - if it can be implemented for mongo, then Phreeze will work with it no problem.