Ash.Query.Combination (ash v3.5.9)

View Source

Represents one combination in a combination of queries.

Summary

Functions

The initial combination of a combined query.

Removes all rows that are present in the previous combinations and this one.

Intersects the query with the previous combinations, keeping only rows that are present in the previous combinations and this one.

Unions the query with the previous combinations, discarding duplicates when all fields are equal.

Unions the query with the previous combinations, keeping all rows.

Types

t()

@type t() :: %Ash.Query.Combination{
  calculations: %{required(atom()) => Ash.Query.Calculation.t()},
  filter: Ash.Expr.t(),
  limit: pos_integer() | nil,
  offset: pos_integer() | nil,
  select: [atom()],
  sort: Ash.Sort.t(),
  type: :base | :union | :union_all | :except | :intersect
}

Functions

base(opts)

The initial combination of a combined query.

except(opts)

Removes all rows that are present in the previous combinations and this one.

intersect(opts)

Intersects the query with the previous combinations, keeping only rows that are present in the previous combinations and this one.

union(opts)

Unions the query with the previous combinations, discarding duplicates when all fields are equal.

union_all(opts)

Unions the query with the previous combinations, keeping all rows.