Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何查看生成的sql #1255

Open
lysShub opened this issue Feb 1, 2025 · 1 comment
Open

如何查看生成的sql #1255

lysShub opened this issue Feb 1, 2025 · 1 comment

Comments

@lysShub
Copy link

lysShub commented Feb 1, 2025

我用

    sql := query.UnderlyingDB().Statement.SQL.String()

是空的

@qqxhb
Copy link
Member

qqxhb commented Feb 24, 2025

如果只是为了看日志的话,加上debug就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants