Skip to content

Dizzzmas/zero-bun-sqlite-store

Repository files navigation

Tests

zero-bun-sqlite-store

Use bun:sqlite as the KV store for zero

Perfect for CLIs, TUIs, and desktop apps

Installation

bun add zero-bun-sqlite-store

Example Usage

import { Zero } from "@rocicorp/zero";
import { bunSQLiteStoreProvider } from "zero-bun-sqlite-store";

const zero = new Zero({
  kvStore: bunSQLiteStoreProvider(),
  ...
});

P.S.

Ideally this becomes part of @rocicorp/zero, working on a contribution.

This was tested with standard zero sqlite store test suite.

Running tests

bun install

bun test

About

bun:sqlite store adapter for zero sync engine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published