greptimedb
greptimedb copied to clipboard
feat: http api csv
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
#577 add csv format support for /sql
api.
For the format of the return value.
- first use query param "format=", optional values are json, csv
- second use Accept Header, optional values are Accept: application/json or Accept: application/csv
- If neither is available, the default value (csv) is used.
For stream, if query param "chunked=false" is passed, then streaming is not applicable, otherwise streaming is enabled by default.
Please explain IN DETAIL what the changes are in this PR and why they are needed:
- Summarize your change (mandatory)
- How does this PR work? Need a brief introduction for the changed logic (optional)
- Describe clearly one logical change and avoid lazy messages (optional)
- Describe any limitations of the current code (optional)
Checklist
- [] I have written the necessary rustdoc comments.
- [] I have added the necessary unit tests and integration tests.