WebReflection / dblite

sqlite for node.js without gyp problems
MIT License
209 stars 34 forks source link

How to integrate with sequelize #42

Closed alexsad closed 8 years ago

alexsad commented 8 years ago

How to integrate with sequelize ? Its is easy ?

WebReflection commented 8 years ago

I'm afraid I don't have time to implement a sequelize dialect. You might want to try to fork them, recycle basically everything they do with the sqlite dialect but use dblite instead of the sqlite module when it comes to execute raws queries. They sanitize pretty much everything so that at the end of the day all you need to do is create a db and execute the created query string through

db.query(sequelizeQueryString, function(err, rows) {
  err ? reject(err) : resolve(rows);
});