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

Allow selective where clauses with optional #7

Open
studiofuga opened this issue Jul 10, 2018 · 0 comments
Open

Allow selective where clauses with optional #7

studiofuga opened this issue Jul 10, 2018 · 0 comments

Comments

@studiofuga
Copy link
Owner

studiofuga commented Jul 10, 2018

When optional are needed to implement where, clients are required to implement a number of cases that explode esponentially. With 4 optional, there are potentially 24 cases.
It is required to modify the where formatting to account of optional.
For operators, it is simple -- optional conditions can be substituted with "1" values (where x=? becomes where 1). for binary operators things are more complex, AND operators can be changed into "TRUE" (like where x=? and TRUE) for OR operators can be changed into 0 (where x= ? or FALSE). Or can be removed. ( where x=? and y=? and z=? becomes where x=? and z=?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant