objectbox / objectbox/objectbox-java
Add query filters for greater-than-or-equal/less-than-or-equal
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Java
- Stars
- 4.6k
- Forks
- 311
- PR merge metrics
- No merged PRs in 30d
Description
Especially with date comparisons it's unpleasant to write stuff like
val query = boxForEvents
.query()
.greater(Event_.startTime, instant.minusNanos(1).toString())
.build()
Having something like geq()/leq() would definitely help.
Contributor guide
No contributing guide indexed for this repository
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 with the query() builder and its greater(...) comparison shown in the issue. Trace how query filters are exposed and represented, then add equivalent greater-than-or-equal and less-than-or-equal entry points for date comparisons; done means callers no longer need to subtract or add a small time interval.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100