4.2.3 • Published 7 months ago

@accumulators/sqlite3 v4.2.3

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
7 months ago

sqlite3

Implementation of 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

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"
4.2.3

7 months ago

4.2.2

8 months ago

4.2.1

8 months ago

4.2.0-alpha.1

8 months ago

4.2.0-alpha.0

8 months ago

4.1.0-alpha.0

8 months ago

4.0.2

8 months ago

4.0.1

8 months ago

3.1.1

8 months ago

3.0.11

8 months ago

3.0.10

8 months ago

3.0.9

8 months ago

3.0.8

8 months ago

3.0.7

9 months ago

3.0.6

9 months ago

3.0.5

9 months ago

3.0.4

9 months ago

3.0.3

9 months ago

3.0.2

9 months ago