Append comments to SQL queries

Is there a way to prepend comments to SQL queries generated by Ecto?

I’d like to instrument my queries with Sqlcommenter in order to have more insights when I debug them.

For example:

SELECT * from USERS /*action='foo',
controller='bar'*/

I can’t find anything in the documentation, but I wonder if a workaround exists for that?

See:

2 Likes