fastify-session-better-sqlite3-store 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# fastify-better-sqlite3-
|
|
1
|
+
# fastify-session-better-sqlite3-store
|
|
2
2
|
|
|
3
|
-

|
|
4
|
+

|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
7
|
Session store for [@fastify/session](https://github.com/fastify/session) using [better-sqlite3](https://github.com/WiseLibs/better-sqlite3). By default [@fastify/session](https://github.com/fastify/session) stores sessions in-memory. Using this package's class you can store sessions on an **SQLite3** database instead.
|
|
@@ -9,7 +9,7 @@ Session store for [@fastify/session](https://github.com/fastify/session) using [
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
npm install fastify-better-sqlite3-
|
|
12
|
+
npm install fastify-session-better-sqlite3-store
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Example
|
|
@@ -23,7 +23,7 @@ const fastifySession = require('@fastify/session')
|
|
|
23
23
|
const db = require('better-sqlite3')(`./sqlite.db`)
|
|
24
24
|
|
|
25
25
|
// require module
|
|
26
|
-
const SqliteStore = require('fastify-better-sqlite3-
|
|
26
|
+
const SqliteStore = require('fastify-session-better-sqlite3-store')
|
|
27
27
|
|
|
28
28
|
fastify.register(fastifyCookie)
|
|
29
29
|
fastify.register(fastifySession,{
|
|
@@ -44,4 +44,4 @@ fastify.register(fastifySession,{
|
|
|
44
44
|
|
|
45
45
|
## License
|
|
46
46
|
|
|
47
|
-
[MIT Licence](https://github.com/mrdcvlsc/fastify-better-sqlite3-
|
|
47
|
+
[MIT Licence](https://github.com/mrdcvlsc/fastify-session-better-sqlite3-store/blob/main/LICENSE)
|