geddy / model

Datastore-agnostic ORM in JavaScript
265 stars 55 forks source link

Add Mysql2 Support with prepared statements #145

Open smitt04 opened 10 years ago

smitt04 commented 10 years ago

I would like to add support for mysql2 with prepared statements. My questions is: Should I create a new adapter call mysql2 or should I add the support into the mysql adapter to use either mysql or mysql2 depending on which one you have installed? They have the same api, the only difference is that mysql2 implemented prepared statements.

mde commented 10 years ago

This sounds awesome! We want one adapter if possible, either smart enough to look for what you have installed, or with an explicit configuration option.