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

Is it possible to add a complete example for a custom operator? #31

Open
AhmadAbdelghany opened this issue Feb 9, 2018 · 3 comments
Open

Comments

@AhmadAbdelghany
Copy link

AhmadAbdelghany commented Feb 9, 2018

For the sake of completeness, would it be possible to give a complete example of a custom operator in the documentation?
I understand that semantics of the operator is not a concern of the parser, so my request should really be directed to rsql-jpa. I just could not find a way to open an issue on their project.

@jirutka
Copy link
Owner

jirutka commented Feb 9, 2018

It is already here...

@AhmadAbdelghany
Copy link
Author

So I have created custom operator "=all=" or "=subString=" so it is parsable. How do I define the what happens when the operator is executed? How to map it a predicate?

@billschauweker
Copy link

Small suggestion for jirutka - or some trying out custom operators in rsql: After adding an operator to the default set, be sure to call the parser constructor with the modified set as an operand.

Great parser by the way.

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

No branches or pull requests

3 participants