Add `has()` and `hasMany()`
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- No language data
- Stars
- 51
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
Per the feature request of https://github.com/Level/community/issues/106. Will add two methods:
await db.put('love', 'u')
await db.has('love') // true
await db.hasMany(['love', 'hate']) // [true, false]
Tasks:
-
level-supports(6.2.0): https://github.com/Level/supports/pull/33 -
abstract-level(3.0.0): https://github.com/Level/abstract-level/pull/96 -
memory-level(3.0.0): https://github.com/Level/memory-level/pull/18 -
classic-level(3.0.0): https://github.com/Level/classic-level/pull/111 -
browser-level(3.0.0): https://github.com/Level/browser-level/pull/25 -
level(10.0.0): bump dependencies -
many-level: implementhas()andhasMany() -
rave-level: implementhas()andhasMany()
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the many-level and rave-level repositories, then compare their current APIs with the has() and hasMany() examples in this issue. Implement both methods in each project and verify that the listed boolean results are returned for existing and missing keys.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100