1.0.0 • Published 4 years ago

keyv-better-sqlite3 v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

keyv-better-sqlite3

SQLite storage adapter for Keyv

SQLite storage adapter for Keyv.

Install

npm install --save keyv keyv-better-sqlite3

Usage

const Keyv = require('keyv');
const KeyvBetterSqlite3 = require('keyv-better-sqlite3');

const keyv = new Keyv({
    store: new KeyvBetterSqlite3({
        uri: 'sqlite://path/to/database.sqlite'
    })
});

You can specify the table and busyTimeout option.

e.g:

const keyv = new Keyv({
    store: new KeyvBetterSqlite3({
        uri: 'sqlite://path/to/database.sqlite',
        table: 'cache',
        busyTimeout: 10000
    })
});

License

MIT ©