Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ELIXIR

phoenix ecto query expression

def with_minimum(age, height_ft) do
  from u in "users",
    where: u.age > ^age and u.height > ^(height_ft * 3.28),
    select: u.name
end

with_minimum(18, 5.0)
Source by hexdocs.pm #
 
PREVIOUS NEXT
Tagged: #phoenix #ecto #query #expression
ADD COMMENT
Topic
Name
7+6 =