Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerfiliba committed Aug 8, 2024
1 parent e6ca839 commit 521ca5a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ for res in db.iter() {
}

assert_eq!(db.iter().count(), 0);

db.set_in_collection("mycoll", "key1", "123")?;
db.set_in_collection("mycoll", "key2", "456")?;
assert_eq!(db.get_from_collection("mycoll", "key1")?, Some("123".into()));

assert_eq!(db.iter_collections("mycoll").count(), 2);

for res in db.iter_collections("mycoll") {
let (k, v) = res?;
println!("{k:?} => {v:?}");
}
```

## Design Goals
Expand Down

0 comments on commit 521ca5a

Please sign in to comment.