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

Extend FilterWhere to match the ones we have in DataSync #1868

Open
amitaibu opened this issue Nov 21, 2023 · 0 comments
Open

Extend FilterWhere to match the ones we have in DataSync #1868

amitaibu opened this issue Nov 21, 2023 · 0 comments

Comments

@amitaibu
Copy link
Collaborator

function notEq(field, value) {
return infixColumnLiteral(field, 'OpNotEqual', value)
}
function lessThan(field, value) {
return infixColumnLiteral(field, 'OpLessThan', value)
}
function lessThanOrEqual(field, value) {
return infixColumnLiteral(field, 'OpLessThanOrEqual', value)
}
function greaterThan(field, value) {
return infixColumnLiteral(field, 'OpGreaterThan', value)
}
function greaterThanOrEqual(field, value) {
return infixColumnLiteral(field, 'OpGreaterThanOrEqual', value)
}

Right now to check for greaterThanOrEqual on IHP I have to do something like

query @Event
    |> filterWhereSql(#participants, cs $ ">= " ++ show event.participants)

Would be nicer to have

query @Event
    |> greaterThanOrEqual(#participants, show event.participants)
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

1 participant