Skip to content

How to print raw SQL for debugging purpose? #590

@KiddoV

Description

@KiddoV

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions