We don’t see this in our Phoenix project, but I do see it in a new project I spun up to play with some tech.
What is that little arrow that tells me where the SQL query is originating from?
It seems very useful and I would like to include it in our project.
4 Likes
Looks like it was this PR in Ecto:
Available in Ecto 3.8 onwards
8 Likes
Thanks! I’ll try updating our Ecto version so we get this niceness.
1 Like
I had to update Ecto in mix.exs
:
{:ecto_sql, "~> 3.8"},
And modify my Repo config in dev.exs
:
# Configure your database
config :gaming, Gaming.Repo,
# snip
stacktrace: true # <- Add this.
3 Likes