Skip to content

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

Open
@amitaibu

Description

@amitaibu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions