forked from rust-rocksdb/rust-rocksdb
-
Notifications
You must be signed in to change notification settings - Fork 159
Closed
Description
Lines 86 to 90 in e97c9b5
let mut batch = WriteBatch::new(); // WriteBatch and db both have trait Writable | |
batch.put(b"my key", b"my value"); | |
batch.put(b"key2", b"value2"); | |
batch.put(b"key3", b"value3"); | |
db.write(batch); // Atomically commits the batch |
Lines 806 to 808 in e97c9b5
pub fn write(&self, batch: &WriteBatch) -> Result<(), String> { | |
self.write_opt(batch, &WriteOptions::new()) | |
} |
Corrected:
db.write(&batch).unwrap();
Metadata
Metadata
Assignees
Labels
No labels