1.0.0 • Published 3 years ago

@keyvhq/keyv-sqlite v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@keyv/sqlite

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

keyv © Luke Childs, Released under the MIT License. Maintained by Kiko Beats and Jytesh, with help from contributors.