# c3store

> connect Sequelize session store

Latest version **0.2.0** (published 2014-06-04) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install c3store
pnpm add c3store
yarn add c3store
bun add c3store
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-06-04 |
| First published | 2012-03-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.10.x |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+19 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Danny Gräf |
| Maintainers | dgf |
| Keywords | connect, sequelize, session, store, SQL, postgres, mysql, sqlite |

## Links

- npm: https://www.npmjs.com/package/c3store
- Repository: https://github.com/dgf/c3store
- Issues: https://github.com/dgf/c3store/issues
- npm.io page: https://npm.io/package/c3store

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) 2.4.x
- [sequelize](https://npm.io/package/sequelize.md) 1.7.x
- [coffee-script](https://npm.io/package/coffee-script.md) 1.7.x

## Alternatives

- [@libsql/sqlite3](https://npm.io/package/@libsql/sqlite3.md) — 39.8K weekly downloads
- [@fortemi/core](https://npm.io/package/@fortemi/core.md) — 461 weekly downloads
- [cdb-converter](https://npm.io/package/cdb-converter.md) — 341 weekly downloads
- [@uplo/adapter-prisma](https://npm.io/package/@uplo/adapter-prisma.md) — 75 weekly downloads
- [typeorm-aios](https://npm.io/package/typeorm-aios.md) — 30 weekly downloads

## Recent versions

- 0.2.0 (latest) — 2014-06-04
- 0.1.1 — 2013-10-23
- 0.1.0 — 2013-10-23
- 0.0.4 — 2012-07-19
- 0.0.3 — 2012-04-19
- 0.0.2 — 2012-03-30
- 0.0.1 — 2012-03-17

## README

# connect express Sequelize session store implementation

[![Build Status](https://travis-ci.org/dgf/c3store.png)](https://travis-ci.org/dgf/c3store/)

## Usage

typical usage scenario with Express 3.x

```coffeescript
# 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

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

The [Express 3.x example app](https://github.com/dgf/c3store/blob/master/example/express3/app.coffee)
shows a complete setup to get started.

## Development

build and test it

```sh
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
```

---
_Source: https://npm.io/package/c3store · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
