Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Latest commit

 

History

History
35 lines (25 loc) · 933 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 933 Bytes

sqlite3-as-promised [Abandoned]

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.