Parent class for SQL based Keyv storage adapters


Keywords
sql, keyv, storage, adapter, key, value, store, cache, ttl, key-value, keyv-sqlite, keyv-storage-adapter, sqlite, sqlite-storage-adapter, storage-adapter
License
MIT
Install
npm install keyv-sql@1.0.0

Documentation

@keyv/sqlite keyv

SQLite storage adapter for Keyv

build 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 © Jared Wray & Luke Childs