juliangruber / juliangruber/level-sec
multiple values for a key
- Dominant language
- JavaScript
- Stars
- 20
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
I'm not sure if i'm thinking of this the wrong way, so please correct me if i'm missing any assumptions
I'm trying to create a secondary index and then look up all values by that key -- maybe multiple rows have that field and i want to see them all.
e.g.
``` js
db.put(1337, {'author'; 'karissa', 'title': 'power rangers'})
db.put(1338, {'author'; 'karissa', 'title': 'power rangers 2'})
... level sec ...
index.byAuthor.get('karissa')
// returns values ==>
[
{'author'; 'karissa', 'title': 'power rangers 2'},
{'author'; 'karissa', 'title': 'power rangers'}
]
```
Is this possible in level-sec, or something else?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.