You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The one thing that was nice about Gorm is that its library had a .Debug() somewhere, forget whether it was on the database or the transaction. When working with complex queries I regularly find myself extracting query and args and logging those separately. When I'm really deep in the weeds I use this little util that prints the actual query:
The one thing that was nice about Gorm is that its library had a
.Debug()
somewhere, forget whether it was on the database or the transaction. When working with complex queries I regularly find myself extractingquery
andargs
and logging those separately. When I'm really deep in the weeds I use this little util that prints the actual query:It would be nice if we would have a
Debug
on ourMainDatabase
orMainDatabaseTx
that calls this method and prints the query being executed.The text was updated successfully, but these errors were encountered: