Wrap node-sqlite3's async methods with the "q" style promises.
Install the module with: npm install sqlite3-as-promised
var sap = require('sqlite3-as-promised');
var sqlite3 = require('sqlite3');
var db = new sqlite3.Database(':memory:');
//init, etc.
sap.all(db, 'SELECT * FROM table')
.then(function(rows) {
//Do something with rows
});
(Coming soon)
(Coming soon)
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
(Nothing yet)
Copyright (c) 2013 Elliott B. Edwards
Licensed under the MIT license.