You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,8 @@ If the directory does not exist, it will be created when opening the DB.
93
93
### Copying and compressing the database
94
94
95
95
```ts
96
-
awaitdb.dump();
96
+
awaitdb.dump(); // To use the default dump filename `/path/to/file.dump`
97
+
awaitdb.dump("/somewhere/else.jsonl"); // To use a different filename
97
98
```
98
99
99
100
After a while, the main db file may contain unnecessary entries. The raw number of entries can be read using the `uncompressedSize` property. To remove unnecessary entries, use the `compress()` method.
@@ -141,6 +142,9 @@ The file will be overwritten if it exists. The 2nd options argument can be used
141
142
Placeholder for next release:
142
143
### __WORK IN PROGRESS__
143
144
-->
145
+
### __WORK IN PROGRESS__
146
+
* Add the ability to dump the database to a different location
147
+
144
148
### 2.2.0 (2021-10-15)
145
149
* Add the ability to specify where the lockfile is created
146
150
@@ -213,4 +217,4 @@ Added an optional reviver function to transform non-primitive objects while load
0 commit comments