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.
- package/README.md +9 -3
- 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
|
-
|
|
23
|
-
//
|
|
24
|
-
|
|
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);
|