AbacusSql.Term (abacus_sql v2.0.0) View Source

Link to this section Summary

Link to this section Functions

Link to this function

auto_join(query, origin_id, assoc)

View Source

Specs

auto_join(Ecto.Query.t(), origin_id :: integer(), assoc :: atom()) ::
  {Ecto.Query.t(), table_id :: integer()}
Link to this function

binary_to_allowed_atom(binary, atoms)

View Source
Link to this function

comb_variable_access(ast)

View Source

Specs

comb_variable_access(tuple()) :: tuple()
Link to this function

convert_ast(ast, query, params, root)

View Source

Specs

convert_ast(any(), Ecto.Query.t(), list(), integer()) ::
  {any(), Ecto.Query.t(), list()}
Link to this function

convert_ast_finalize(arg, _, _, _)

View Source
Link to this function

find_assoc(schema, name)

View Source

Specs

find_assoc(atom(), binary()) :: assoc :: atom() | nil
Link to this function

find_field(schema, name)

View Source

Specs

find_field(atom(), binary()) :: {field :: atom(), type :: atom()} | nil
Link to this function

find_join(query, root, field)

View Source

Specs

find_join(Ecto.Query.t(), pos_integer(), binary()) :: nil | pos_integer()
Link to this function

get_field(path, query, params, root)

View Source
Link to this function

get_join_source(query, join)

View Source

Specs

get_root(Ecto.Query.t()) :: module()
Link to this function

get_schema_by_id(query, id)

View Source

Specs

get_schema_by_id(Ecto.Query.t(), integer()) :: module()
Link to this function

get_table_id(query, module)

View Source

Specs

get_table_id(Ecto.Query.t(), module()) :: integer()

Specs

parse(AbacusSql.t()) :: {:ok, tuple()}
Link to this function

postprocess(ast, query, params)

View Source
Link to this function

preprocess(ast, query, params)

View Source
Link to this function

reduce_args(args, query, params, root)

View Source

Specs

reduce_args([any()], Ecto.Query.t(), list(), module()) ::
  {[any()], Ecto.Query.t(), list()}
Link to this function

rename_variables(ast, vars)

View Source

Specs

rename_variables(tuple(), map()) :: tuple()
Link to this function

to_ecto_term(query, term, params \\ [])

View Source

Specs

to_ecto_term(Ecto.Query.t(), AbacusSql.t(), list()) ::
  {:ok, Ecto.Query.t(), expr :: tuple(), params :: list()}