PgRest.AST.Condition (PgRest v0.2.0)

Copy Markdown View Source

A single field op value filter.

value is a binary for scalar operators, a list of binaries for in and for any/all quantified array literals, one of :null | :not_null | true | false | :unknown for is, and the raw literal ({1,2}, [1,5), JSON) for cs, cd and ov.

Summary

Types

op()

@type op() ::
  :eq
  | :neq
  | :gt
  | :gte
  | :lt
  | :lte
  | :like
  | :ilike
  | :match
  | :imatch
  | :in
  | :is
  | :isdistinct
  | :fts
  | :plfts
  | :phfts
  | :wfts
  | :cs
  | :cd
  | :ov
  | :sl
  | :sr
  | :nxr
  | :nxl
  | :adj

t()

@type t() :: %PgRest.AST.Condition{
  field: PgRest.AST.Field.t(),
  fts_config: String.t() | nil,
  modifier: nil | :any | :all,
  negate: boolean(),
  op: op(),
  value: value()
}

value()

@type value() ::
  String.t() | [String.t()] | :null | :not_null | true | false | :unknown