Ecto.Query.Util

This module provide utility functions on queries.

Source

Summary

find_source(sources, arg2)

Look up a source with a variable

locate_var(list, var)
model(arg1)

Returns model from a source tuple or nil if there is none

model_var(query, model)
source(arg1)

Returns the source from a source tuple

source_expr(query, arg2)

Look up the expression where the variable was bound

Functions

find_source(sources, arg2)

Look up a source with a variable.

Source
locate_var(list, var)
Source
model(arg1)

Returns model from a source tuple or nil if there is none.

Source
model_var(query, model)
Source
source(arg1)

Returns the source from a source tuple.

Source
source_expr(query, arg2)

Look up the expression where the variable was bound.

Source