sqlite3-as-promised

Wrap node-sqlite3's async methods with the 'q' style promises in node.js

npm install sqlite3-as-promised
2 downloads in the last day
12 downloads in the last week
25 downloads in the last month

sqlite3-as-promised

Wrap node-sqlite3's async methods with the "q" style promises.

Getting Started

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
        });

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

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.

Release History

(Nothing yet)

License

Copyright (c) 2013 Elliott B. Edwards
Licensed under the MIT license.

npm loves you