Returning row data from PostgreSQL functions w/ Ecto
Continuing our exploration of all things Elixir, we’re going to convert our search query into a PostgreSQL function that returns rows and try put that row data into an Ecto schema.
http://www.brightball.com/articles/postgresql-functions-with-elixir-ecto
Read next Introducing Tesla — the flexible HTTP client for Elixir