Exd v0.1.10 Exd.Query View Source

Defines the Query data structure and provides the Query DSL.

Link to this section Summary

Types

From expression

Join expression

Identifier

Select expression

A queryable source

t()

Query struct

Link to this section Types

Link to this type from_expr() View Source
from_expr() :: {name(), sourceable()}

From expression

Link to this type join_expr() View Source
join_expr() :: %{from: from_expr(), left_key: term(), right_key: term()}

Join expression

Identifier

Link to this type select_expr() View Source
select_expr() :: map()

Select expression

Link to this type sourceable() View Source
sourceable() :: t() | term() | [t()] | [term()]

A queryable source

Link to this type t() View Source
t() :: %Exd.Query{
  distinct: term(),
  from: term(),
  into: term(),
  joins: term(),
  materialize: term(),
  or_where: term(),
  select: term(),
  select_merge: term(),
  where: term()
}

Query struct

Link to this section Functions

Link to this function from(query \\ %Query{}, namespace, specable, opts \\ []) View Source
Link to this function into(query, sink, opts \\ []) View Source
Link to this function join(query, namespace, specable, opts \\ []) View Source
Link to this function select(query, selection) View Source
Link to this function where(query, field, relation, value) View Source