Created
December 29, 2017 17:57
-
-
Save DanielBlanco/57440eb2cd4bc5ec8db11c647ab3860c to your computer and use it in GitHub Desktop.
How to output Ecto's generated SQL to console.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{sql, _} = Repo.to_sql(:all, query) | |
IO.puts sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment