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
+13-5
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Inspired by NeDB, DnDB is a powerful but minimalist database engine written on J
10
10
11
11
## Why DnDB?
12
12
13
-
DnDB is an incredibly fast and powerful data store. All methods are streamed and buffered to optimize data reading and writing. DnDB is not only faster, but it consumes less resources (RAM) since only a small portion of the data stream is stored in memory by the buffer.
13
+
DnDB is an incredibly fast and powerful data store. All methods are streamed and buffered to optimize data reading/writing. DnDB is not only faster, but it consumes less resources (RAM) since only a small portion of the data stream is stored in memory by the buffer, enabling optimal performance on large data collections.
14
14
15
15
## 🧪 Quick test
16
16
@@ -19,7 +19,7 @@ DnDB is an incredibly fast and powerful data store. All methods are streamed and
@@ -172,6 +172,10 @@ To update documents DnDB exposes the method:
172
172
173
173
- returns: array with the new updated collection
174
174
175
+
-`updateOne`
176
+
177
+
- returns: object with the new updated document.
178
+
175
179
The update method follows the same query rules as in `find` and `findOne` at first argument to get the update target document and as a second agument it receives the aggregation operators that modifies the matching fileds values by following the aggregation rules.
176
180
177
181
> *Notice*: See all rules and operators list [here](https://www.npmjs.com/package/mingo)
@@ -192,7 +196,11 @@ To remove documents DnDB exposes the method:
192
196
193
197
-`remove`
194
198
195
-
- returns: array with the new updated collection
199
+
- returns: array with the new removed collection
200
+
201
+
-`removeOne`
202
+
203
+
- returns: object with the new removed document
196
204
197
205
The remove method follows the same query rules as in `find` and `findOne` at first argument, it will remove all the documents that matches the query.
0 commit comments