@keyv/sqlite
TypeScript icon, indicating that this package has built-in type declarations

3.6.7 • Public • Published

@keyv/sqlite keyv

SQLite storage adapter for Keyv

build codecov npm 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

Package Sidebar

Install

npm i @keyv/sqlite

Weekly Downloads

7,086

Version

3.6.7

License

MIT

Unpacked Size

20.4 kB

Total Files

10

Last publish

Collaborators

  • jaredwray
  • lukechilds