Skip to content

Support postgresql array operators #172

Open
@wexder

Description

@wexder

Is your feature request related to a problem? Please describe.
We have few usecases where we need to have column as postgresql array and then filter if some item is in the array. If I'm not mistaken the only way we can currently do it in jet is like

postgres.CAST(postgres.Raw("moment.statuses @> #status", postgres.RawArgs{"#status": string(domain.MomentStatusActive)})).AS_BOOL()

Which is not nice.

Describe the solution you'd like
Support array types and array operators as like https://www.postgresql.org/docs/9.1/functions-array.html

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions