Singyeong.Query (singyeong v0.4.14) View Source
Link to this section Summary
Functions
Merge the given ops into this query
Creates a new query for the given target application
Converts the provided values into a proper boolean op.
Adds the provided logical op over the provided ops to the query.
Adds the provided boolean op to the query.
Adds the provided boolean op to the query.
Sets the query's selector to the specified key
Link to this section Types
Specs
boolean_op() :: %{required(boolean_op_name()) => term()}
Specs
boolean_op_name() :: :"$eq" | :"$ne" | :"$gt" | :"$gte" | :"$lt" | :"$lte" | :"$in" | :"$nin" | :"$contains" | :"$ncontains"
Specs
logical_op() :: %{ required(logical_op_name()) => maybe_improper_list(boolean_op(), logical_op()) }
Specs
logical_op_name() :: :"$and" | :"$or" | :"$nor"
Specs
op() :: %{required(binary()) => boolean_op() | logical_op()}
Specs
ops() :: [op()] | []
Specs
selector() :: :"$min" | :"$max" | :"$avg"
Specs
Link to this section Functions
Specs
Merge the given ops into this query
Specs
Creates a new query for the given target application
Specs
values_to_op(boolean_op_name(), String.t(), term()) :: boolean_op()
Converts the provided values into a proper boolean op.
Specs
with_logical_op(t(), logical_op_name(), op(), op()) :: t()
Adds the provided logical op over the provided ops to the query.
Specs
with_op(t(), boolean_op()) :: t()
Adds the provided boolean op to the query.
Specs
with_op(t(), boolean_op_name(), String.t(), term()) :: t()
Adds the provided boolean op to the query.
Specs
Sets the query's selector to the specified key