Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Support for on compile query validations #16

Open
WojciechMazur opened this issue Apr 13, 2020 · 0 comments
Open

Support for on compile query validations #16

WojciechMazur opened this issue Apr 13, 2020 · 0 comments

Comments

@WojciechMazur
Copy link
Collaborator

When using queries Datastore may throw exceptions at runtime while validating query. We can check code generated by macro and check if it may validate some conditions.

Cases on which query may fail:

  1. Multiple inequality criteria (Option.isDefined is also checked using _ > null criteria
  2. Inequality filter property and first sort order property are different.
    e.g Select * from Entity where foo > 'xyz' and bar = 123 order by bar
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants