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

2.1.1 • Public • Published

@keyvhq/sqlite keyv

SQLite storage adapter for Keyv.

Install

npm install --save @keyvhq/core @keyvhq/sqlite

Usage

const KeyvSqlite = require('@keyvhq/sqlite')
const Keyv = require('@keyvhq/core')

const keyv = new Keyv({
  store: new KeyvSqlite('sqlite://path/to/database.sqlite')
})

You can specify the table and busyTimeout option:

const KeyvSqlite = require('@keyvhq/sqlite')
const Keyv = require('@keyvhq/core')

const keyv = new Keyv({
  store: new KeyvSqlite('sqlite://path/to/database.sqlite', {
    table: 'cache',
    busyTimeout: 10000
  })
})

License

@keyvhq/sqlite © Luke Childs, released under the MIT License.
Maintained by Microlink with help from contributors.

microlink.io · GitHub microlinkhq · Twitter @microlinkhq

Package Sidebar

Install

npm i @keyvhq/sqlite

Homepage

keyv.js.org

Weekly Downloads

69

Version

2.1.1

License

MIT

Unpacked Size

5.46 kB

Total Files

5

Last publish

Collaborators

  • kikobeats
  • jytesh