SQLite adapter for coco-cashu cashu wallet library, leveraging Bun's built-in `bun:sqlite` module instead of `better-sqlite3`. Current stable version is 1.1.2-rc.50 (release candidate). Designed exclusively for Bun runtime, eliminates external SQLite dependencies. Released as part of the coco-cashu ecosystem (GitHub: cashubtc/coco). Key differentiator: zero native module installation needed on Bun, using `bun:sqlite` which is directly integrated. Requires peer dependency `coco-cashu-core` and TypeScript 5+.
npm install coco-cashu-sqlite-bunNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize an in-memory SQLite database with coco-cashu repositories, then create a mint record using the repository.
Use `coco-cashu-sqlite3` for Node.js, or run with Bun installed.
Always `await repositories.init()` after instantiation.
Use `new SqliteRepositories({ database })` instead of `new SqliteRepositories(database)`.Specify a file path for persistent storage.
Update Bun to at least 1.0.0 with `bun upgrade`.
npm install coco-cashu-core
Ensure you import `{ SqliteRepositories }` correctly and your version is >=1.1.0.