@livingdata/keyv-sqlite

2.1.0 • Public • Published

@keyv/sqlite keyv

SQLite storage adapter for Keyv

Build Status Coverage Status npm

SQLite storage adapter for Keyv.

Install

npm install --save keyv @keyv/sqlite

Usage

const Keyv = require('keyv');

const keyv = new Keyv('sqlite://path/to/database.sqlite');
keyv.on('error', handleConnectionError);

You can specify the table and busyTimeout option.

e.g:

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

License

MIT © Luke Childs

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.0
    0

Package Sidebar

Install

npm i @livingdata/keyv-sqlite

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

4.11 kB

Total Files

6

Last publish

Collaborators

  • jdesboeufs