Skip to content

Commit 0aeefc2

Browse files
author
James Halliday
committed
all good
1 parent cde5433 commit 0aeefc2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

leveldb.markdown

+15-1
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,28 @@ We might need to create:
102102
---
103103
# batch
104104

105-
perform multiple
105+
insert multiple records at a time, atomically
106106

107107
``` js
108+
db.batch([
109+
{"key":"foo","value":"123"},
110+
{"key":"bar","value":"456"}
111+
])
108112
```
109113

110114
---
111115
# createReadStream
112116

117+
```
118+
db.createReadStream({
119+
gt: "a",
120+
lt: "m"
121+
})
122+
```
123+
124+
* gt - greater than
125+
* lt - less than
126+
113127
---
114128
# thinking lexicographically
115129

0 commit comments

Comments
 (0)