After constructing a Query or calling a repository function, how can we print the raw SQL to the console — similar to using .Debug() in GORM?
Is there any built-in logger or debug mode we can enable to see the exact SQL being executed?
If not, what’s the recommended way to inspect the generated SQL for debugging?
After constructing a Query or calling a repository function, how can we print the raw SQL to the console — similar to using .Debug() in GORM?
Is there any built-in logger or debug mode we can enable to see the exact SQL being executed?
If not, what’s the recommended way to inspect the generated SQL for debugging?