-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[10.x] Add getRawQueryLog() method #47623
Conversation
Co-authored-by: mpyw <ryosuke_i_628@yahoo.co.jp>
Co-authored-by: Morten Harders <mmh@harders-it.dk>
Will there be leakage of sensitive information? |
@huangdijia Certainly, there are concerns about leaking of sensitive information because this feature make it possible to dump full sql query logs which is bound all properties. |
In #47507 , toRawSql() was implemented that can retrieve the complete query with values bound to the SQL output by toSql().
I thought it would be nice to have an extension method that could retrieve the complete query with bound values, similarly with DB:::getQueryLog()
I implemented it.
Usage
Basically, the usage is the same as getQueryLog()
In the case of getQueryLog(), we could get an associative array like this
Now, we could get an associative array like this with getRawQueryLog()