Packages

Convert Abacus expression into Ecto DSL expressions, and use them for where, selects, order_by, group_by or having clauses.

Current section

Files

Jump to
abacus_sql lib ast_util.ex
Raw

lib/ast_util.ex

defmodule AbacusSql.AstUtil do
def join_right_operator(expressions, operator)
def join_right_operator([one], _operator) do
one
end
def join_right_operator([first | rest], operator) do
{operator, [], [first, join_right_operator(rest, operator)]}
end
end