docs/core/gdb-senior-catch-sql #237
Replies: 1 comment
-
|
如果我想要捕获整个请求的sql,然后输出到返回到信息里面方便调试,需要怎么做?按这个文档的话就是每个接口都要在外层包个catchSql方法,这样是不是有点麻烦,有没有其他的方法可以解决? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
docs/core/gdb-senior-catch-sql
GoFrame框架中ORM的高级特性,主要关注SQL捕获和转换功能。通过CatchSQL和ToSQL方法,能够在执行SQL语句前捕获或预估SQL操作,并配合上下文对象实现操作记录与调试。这些功能有助于开发者高效调试和测试数据库操作。
https://goframe.org.cn/docs/core/gdb-senior-catch-sql
Beta Was this translation helpful? Give feedback.
All reactions