/seneca-sqlite-store

SQLite database driver for Seneca MVP toolkit

Primary LanguageJavaScriptMIT LicenseMIT

Seneca

A Seneca.js a seneca-auth plugin

seneca-sqlite-store

npm version Build Status Dependency Status Gitter chat

Seneca-SQLite is a SQLite database driver for Seneca MVP toolkit This project was sponsored by nearForm.

Install

npm install seneca-sqlite-store

Using sqlite-store

When using seneca-auth the local auth must be initialized using:

var seneca              = require('seneca');
    var senecaSQLiteStore   = require('seneca-sqlite');

    var senecaConfig = {}
    var senecaSQLiteStoreOpts = {
        database:'/path/to/seneca_sqlite.db'
    };

var si = seneca(senecaConfig);
   si.use(senecaSQLiteStore, senecaSQLiteStoreOpts);
   si.ready( function(){
       var product = si.make('product');
       ...
   });

Test

To run tests, simply use npm:

npm run test

Contributing

The Senecajs org encourage open participation. If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.

License

Copyright Marius Ursache and other contributors 2016, Licensed under MIT.