# koa2-mysql-session

> 采用es6语法, 将session信息保存在 mysql 数据库里的库

Latest version **0.1.0** (published 2018-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install koa2-mysql-session
pnpm add koa2-mysql-session
yarn add koa2-mysql-session
bun add koa2-mysql-session
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-01-12 |
| First published | 2018-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| Author | charlesliu |
| Maintainers | jiaxi0331 |
| Keywords | async, mysql, session |

## Links

- npm: https://www.npmjs.com/package/koa2-mysql-session
- npm.io page: https://npm.io/package/koa2-mysql-session

## Dependencies (1)

- [mysql2](https://npm.io/package/mysql2.md) ^1.5.1

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-01-12

## README

this is a simple training lib which copy from: https://github.com/tb01923/koa-mysql-session
and update to use async / await

#### example:
 
```js
const 
    Koa = require('koa'),
    session = require('koa-session')
    MysqlStore = require('koa2-mysql-session'),
    app = new Koa()
    
mysqlConfig = {
    host: 'localhost',
    user: 'root',
    password: '123456',
    database: 'demo'
}

app.use(session({store: new MysqlStore(mysqlConfig)}, app))
```

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