Skip to content

Add the JSON output format option #97

@LonwoLonwo

Description

@LonwoLonwo

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": {...}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions