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

Add debug / verbose mode with dumping all generated SQL queries #228

Open
MurzNN opened this issue May 3, 2021 · 3 comments
Open

Add debug / verbose mode with dumping all generated SQL queries #228

MurzNN opened this issue May 3, 2021 · 3 comments

Comments

@MurzNN
Copy link

MurzNN commented May 3, 2021

Will be good to add debug or verbose mode, that will dump all generated SQL queries to console before executing.
Very often dump process generates the SQL errors, but it's too hard to understand in which step it happens.

For example, on my dump proccess I see only this output:

mysqldump-php error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'

And can't figure out in which exact table this happens.

@MurzNN
Copy link
Author

MurzNN commented May 3, 2021

Something like this #229

@ifsnop
Copy link
Owner

ifsnop commented May 3, 2021 via email

@MurzNN
Copy link
Author

MurzNN commented Oct 8, 2021

Sorry for delay, I've replaced \n to PHP_EOL now.
About other calls - there are quite a lot of them, so better to move verbose output to wrapper function, I've pushed this change to my PR - please review.

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