+   Reply to Thread

Thread: Interfaces
Hi! :)
Are there any interfaces in the newset Rain Framework?
What do you call interfaces ?

I'd like to use nodb (mangoDB), but not anough time to work on it...
yessss working on mangoDB will be a really good idea
OK, what's could be your idea? We decided to make DB a singleton class that loads PDO, before was an interface for MySql, PDO or whatever class, we might step back and add also Mongo DB, I think that could be a good idea.
There is a small lost of performance and the code get little more complex, but definitely the possibility to be DB independent is worth it!

Let me know your idea
Well, we thought there is two points of view.

1/ User starts an application from scratch. So no matter of an existinng Database, the user will use the required format (Mysql...).

2/ User already have a NoDB database. If he wants to connect an existing database, it requires a connector...

So the best idea is yours : connect over PDO. I didn't find a nodb PDO connector, but it doesn't matter. Keep going on !

+   Reply to Thread