This package has been deprecated

Author message:

You should upgrade to keyv@2 and used the scoped SQLite adapter @keyv/sqlite

keyv-sqlite

1.2.4 • 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

/keyv-sqlite/

    Package Sidebar

    Install

    npm i keyv-sqlite

    Weekly Downloads

    1

    Version

    1.2.4

    License

    MIT

    Last publish

    Collaborators

    • lukechilds