Sometimes it is not enough to have exit codes for pipelines for errors.
Especially for complex logic (e.g., if we have connection issues, report to Slack). Should have the ability to parse log output, not to use grep/awk.
Also, the JSON format can avoid issues with specific symbols for outputs.
Example:
dbvr sql --sql="SELECT 1" -con=sap_hana-16fd231c424-6d9a8c69f6c97ad7 --outputLog=json
# Ok: {"status": "ok", "rows": 1}
# Error: {"status": "error", "code": 1, "message": "Connection failed", "details": {...}}
Sometimes it is not enough to have exit codes for pipelines for errors.
Especially for complex logic (e.g., if we have connection issues, report to Slack). Should have the ability to parse log output, not to use grep/awk.
Also, the JSON format can avoid issues with specific symbols for outputs.
Example: