1.0.1 • Published 8 months ago

bun-kv v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

bun-kv

A simple key-value store with SQLite that use bun:sqlite. No dependencies.

bun add bun-kv

Sample usage with TypeScript:

import { KV } from 'bun-kv'

type Item = {
  id: string
  created_at: number
}

const items = new KV<Item>('items.sqlite')

items.set('foo', { created_at: Date.now(), id: 'foo' })

const foo = items.get('foo')
      ^? { created_at: number, id: string } | undefined

License

MIT

1.0.1

8 months ago

1.0.0

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago