Neo's Playing Morpheus

    connect-bookshelf

    0.0.4 • Public • Published

    connect-bookshelf

    connect-bookshelf is a session store for express/connect using Bookshelf.js

    Usage

    var express = require('express'),
        session = require('express-session'),
        BookshelfStore = require('connect-bookshelf')(session);
     
    app = express();
     
    app.use(session({
      store: new BookshelfStore({model: aBookshelfModel}),
      secret: 's3cr3t'
    }));

    Where aBookshelfModel is a model with columns something like:

    • id, integer, primarykey
    • sid, string, unique
    • data, string

    Keywords

    none

    Install

    npm i connect-bookshelf

    DownloadsWeekly Downloads

    0

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    3.27 kB

    Total Files

    4

    Last publish

    Collaborators

    • nnarhinen