Hi,

There are modules in drupal community (eg nodejs), that have hard coded static queries , which forces user to only use Mysql. Can someone guide me how to convert these queries and architecture so that other No Sql dbs like mondodb can be used easily?

Thanks.

Comments

MiSc’s picture

If you check the work that has been done with EFQ Views you should have a good start.

denny84’s picture

Thanks a lot, I will look into it.

denny84’s picture

I did glance over the efq_views. However, it seems like an overkill for me to convert something like

$uid = db_query("SELECT uid FROM {sessions} WHERE MD5(sid) = :auth_key", array(':auth_key' => $message['authToken']))->fetchField();

...like queries, into something that will be understood by mongodb.

More like abstraction.

Thanks

MiSc’s picture

Status: Active » Closed (works as designed)