node-sqlite-kv 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -19,9 +19,15 @@ bun add node-sqlite-kv
19
19
  ```js
20
20
  import { KVSync } from "node-sqlite-kv";
21
21
 
22
- // use :memory: for in-memory storage
23
- // path is optional, defaults to :memory:
24
- const kv = new KVSync("./data.sqlite");
22
+ const kv = new KVSync({
23
+ // use :memory: for in-memory storage
24
+ // path is optional, defaults to :memory:
25
+ path: "./data.sqlite",
26
+
27
+ // optional journal mode
28
+ // default: DELETE
29
+ journalMode: "WAL",
30
+ });
25
31
 
26
32
  // set values
27
33
  kv.set("number", 123);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-sqlite-kv",
3
3
  "description": "Key-value store with node:sqlite",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "repository": {
6
6
  "url": "https://github.com/e60m5ss/node-sqlite-kv"
7
7
  },