@keyv/sqlite

SQLite storage adapter for Keyv

Stats

StarsIssuesVersionUpdatedCreatedSize
@keyv/sqlite
6112.0.22 years ago4 years agoMinified + gzip package size for @keyv/sqlite in KB

Readme

@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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.