Hi everyone,
Would such functionality be of interest in Ecto?
For me, it would be convenient to see my own comment (e.g., query name and project) in the Postgres Slow Query Log, for example, or in other places.
If this is something that's wanted, I can implement it. It would require changes in both ecto and ecto_sql.
iex(1)> from(q in Post, limit: 1, comment: "GetPost") |> Repo.one()
12:02:26.743 [debug] QUERY OK source="posts" db=4.2ms decode=0.5ms queue=1.1ms idle=1431.3ms
/* GetPost */SELECT p0."id", p0."data", FROM "posts" AS p0 LIMIT 1 []
Should I create a ticket & PR? What your thoughts ?