Skip to content

Instantly share code, notes, and snippets.

@DanielBlanco
Created December 29, 2017 17:57

Revisions

  1. DanielBlanco created this gist Dec 29, 2017.
    2 changes: 2 additions & 0 deletions ecto_to_sql.ex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    {sql, _} = Repo.to_sql(:all, query)
    IO.puts sql