# @accumulators/sqlite3

> Sqlite3 IStore implementation for Accumulators

Latest version **4.3.0** (published 2026-04-02) · GPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @accumulators/sqlite3
pnpm add @accumulators/sqlite3
yarn add @accumulators/sqlite3
bun add @accumulators/sqlite3
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 4.3.0 |
| Published | 2026-04-02 |
| First published | 2023-08-24 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Herodotus Dev Ltd |
| Maintainers | beeinger, 0xmarcello |

## Links

- npm: https://www.npmjs.com/package/@accumulators/sqlite3
- Repository: https://github.com/HerodotusDev/accumulators
- Issues: https://github.com/HerodotusDev/accumulators/issues
- npm.io page: https://npm.io/package/@accumulators/sqlite3

## Dependencies (3)

- [sqlite3](https://npm.io/package/sqlite3.md) ^5.1.6
- [@types/sqlite3](https://npm.io/package/@types/sqlite3.md) ^3.1.8
- [@accumulators/core](https://npm.io/package/@accumulators/core.md) ^4.2.3

## Recent versions

- 4.3.0 (latest) — 2026-04-02
- 4.2.3 — 2023-10-06
- 4.2.2 — 2023-09-20
- 4.2.1 — 2023-09-11
- 4.2.0-alpha.1 — 2023-09-11
- 4.2.0-alpha.0 — 2023-09-11
- 4.1.0-alpha.0 — 2023-09-11
- 4.0.2 — 2023-09-08
- 4.0.1 — 2023-09-08
- 3.1.1 — 2023-09-01
- 3.0.11 — 2023-08-30
- 3.0.10 — 2023-08-28
- 3.0.9 — 2023-08-28
- 3.0.8 — 2023-08-28
- 3.0.7 — 2023-08-27
- … 5 more at https://npm.io/package/@accumulators/sqlite3/versions

## README

# `sqlite3`

Implementation of [`Store`](../core/README.md#store) interface that uses a sqlite3 table to store data.

After creating an instance of `SqliteStore` remember to call `init` method to initialize the store, unless you are sure that the tables is created in the database.

## Example

```typescript
import SqliteStore from "@accumulators/sqlite3";

const store = new SqliteStore();
await store.init(); // remember to initialize the store

const valuesToSet = new Map<string, string>();
valuesToSet.set("key1", "value1");
valuesToSet.set("key2", "value2");

await store.setMany(valuesToSet);

await store.set("key3", "value3");

const values = await store.getMany(["key2", "key3"]);

console.log(values.get("key2")); // "value2"
```

---
_Source: https://npm.io/package/@accumulators/sqlite3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
