Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/papakvy/sql_doctor
https://github.com/papakvy/sql_doctor
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/papakvy/sql_doctor
- Owner: papakvy
- Created: 2023-11-23T03:41:32.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T06:53:01.000Z (4 months ago)
- Last Synced: 2024-07-25T08:03:19.930Z (4 months ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQL Doctor
## Pre-requirements
- `shc` package must be installed on your system
## Installation Instructions
### 1. Install
```bash
[sudo] make install
```Then, follow the messages during installation!
### 2. Verify
```bash
sql_doctor -v# sql_doctor 1.0.1 (2024-09-06)
```### 3. Usage
- Default value: `--execution-time = 1000`, `--total-results-peak = 200` and `--multiple-pattern = n`
```bash
sql_doctor /path/to/log/file.log
```- Choose your desired values for `--execution-time` and `--total-results-peak`.
```bash
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
```### 4. Uninstall
```bash
[sudo] make uninstall
```### 5. Contributing
- 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