An open API service indexing awesome lists of open source software.

https://github.com/redraskal/bun-kv

A simple KV store using Bun's SQLite module.
https://github.com/redraskal/bun-kv

bun kv sqlite typescript

Last synced: 2 months ago
JSON representation

A simple KV store using Bun's SQLite module.

Awesome Lists containing this project

README

          

# bun-kv

A simple KV store using Bun's [SQLite](https://bun.sh/docs/api/sqlite) module.

```bash
bun i redraskal/bun-kv#main
```

```ts
import KV from "bun-kv";

const database = new Database("bun.sqlite");
const KV = new KV(database);

KV.set("banana", "bread");
console.log(KV.get("banana")); // "bread"

KV.remove("banana");
```

This project was created using `bun init` in bun v0.6.15. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.