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

Feature Request: json should be an output format option #48

Open
alexiswl opened this issue Jun 14, 2023 · 0 comments
Open

Feature Request: json should be an output format option #48

alexiswl opened this issue Jun 14, 2023 · 0 comments

Comments

@alexiswl
Copy link

Hello,

I may wish to return this as a json format where each row is a record.

Note this is a current workaround for returning a query in json format

jq --raw-output <<< "$( \
  dbsqlcli \
    --execute \
    '
      SELECT * FROM TABLE
    ' | \
  python -c "import pandas as pd; import sys; print(pd.read_csv(sys.stdin).to_json(orient='records'))" \
)"
@alexiswl alexiswl changed the title Feature Request: Add json should be an output format option Feature Request: json should be an output format option Jun 14, 2023
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

1 participant