shcpackage must be installed on your system
[sudo] make installThen, follow the messages during installation!
sql_doctor -v
# sql_doctor 1.0.3 (2024-12-24 🎄)- Default value:
--execution-time = 1000,--total-results-peak = 200and--multiple-pattern = n
sql_doctor /path/to/log/file.log- Choose your desired values for
--execution-timeand--total-results-peak.
sql_doctor -e 5000 -p 100 /path/to/log/file.log
# Explain
- Get all SQLs in the `/path/to/log/file.log` with `--execution-time >= 5000 miliseconds`
- Results must be "<=100" records[sudo] make uninstall- Fork it ( https://github.com/papakvy/sql_doctor/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request