Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding the "between" specification to make queries easier #690

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

henriquediascampos
Copy link

Recently, I noticed the absence of a Predicate specification that tests whether a given literal value v is between two dynamic expressions x and y.

In a real-world scenario, I encountered this need while checking if a specific date fell between two values stored in the database. At the time, I worked around this by combining "greater than" and "less than" conditions to achieve the desired result. However, wouldn't it be much cleaner and less verbose if we could express this condition directly in a clearer way?

This addition introduces a new between method that improves query readability and conciseness. I believe this enhancement would make the API more intuitive for developers who encounter similar use cases.

(This is my first contribution; please let me know if I missed any steps or if further adjustments are needed. I appreciate your feedback!)

@henriquediascampos henriquediascampos force-pushed the between-value-expression-expression-specification branch from 3f423eb to 37f2bb2 Compare December 17, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant