Persistence

SQLite

@dsar/persistence-sqlite provides a SQLite driver for DSAR persistence. Supports Bun and Node runtimes with in-memory default for fast local development and testing.

Installation

Package managerCommand
npmnpm install @dsar/persistence-sqlite
pnpmpnpm add @dsar/persistence-sqlite
yarnyarn add @dsar/persistence-sqlite
bunbun add @dsar/persistence-sqlite

Quickstart

Standalone Service

Effect Layer Composition

When to Use SQLite

  • Local development — in-memory mode starts instantly with zero configuration
  • Testing — each test gets a fresh in-memory database
  • Lightweight deployments — single-server setups where Postgres is overkill
  • Prototyping — get a working DSAR instance running in seconds

For production multi-instance deployments, use Postgres instead.

Related