c3store

connect Sequelize session store

c3store has been renamed to express-sequelize-session, please install the latest version of express-sequelize-session instead of c3store
Last updated 6 years ago by dgf .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install c3store 
SYNC missed versions from official npm registry.

connect express Sequelize session store implementation

Build Status

Usage

typical usage scenario with Express 3.x

# load and init express app
express = require 'express'
app = express()

# load and init Sequelize connection
Sequelize = require 'sequelize'
sequelize = new Sequelize 'db.name', 'db.user', 'db.pass'

# load and create session store
C3Store = require('c3store') express.session.Store
app.use express.session
  secret: 'MyAwesomeAppSessionSecret'
  store: new C3Store sequelize

change the table name or define additional attributes

store = new C3Store db, 'http_session_table',
  optional:
    type: Sequelize.STRING
    allowNull: true

The Express 3.x example app shows a complete setup to get started.

Development

build and test it

c3store git:(master) ✗ cake
Cakefile defines the following tasks:

cake build                # build coffee
cake coverage             # run coverage
cake lint                 # run lint
cake spec                 # run specifications

Current Tags

  • 0.2.0                                ...           latest (6 years ago)

7 Versions

  • 0.2.0 [deprecated]           ...           6 years ago
  • 0.1.1 [deprecated]           ...           7 years ago
  • 0.1.0 [deprecated]           ...           7 years ago
  • 0.0.4 [deprecated]           ...           8 years ago
  • 0.0.3 [deprecated]           ...           8 years ago
  • 0.0.2 [deprecated]           ...           8 years ago
  • 0.0.1 [deprecated]           ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (11)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |