Change delimiter for CSV response #1973
-
Question from Gitter https://gitter.im/begriffs/postgrest?at=615a8a067db1e3753e1eef7a:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answered given on Gitter https://gitter.im/begriffs/postgrest?at=615b348e3f09d85736f4c04d: There's no way to change the delimiter yet as mentioned in this issue: #1102. You could however get a similar behavior using a function with parameters working as your date filters, albeit in a more cumbersome way. A possible query for the function could be: SELECT 'id|column1|column2|...'
UNION ALL
SELECT id + '|' + column1 + '|' + column2 + '|' + ...
FROM api.goods
WHERE updatetime > @updatetime and use |
Beta Was this translation helpful? Give feedback.
Answered given on Gitter https://gitter.im/begriffs/postgrest?at=615b348e3f09d85736f4c04d:
There's no way to change the delimiter yet as mentioned in this issue: #1102. You could however get a similar behavior using a function with parameters working as your date filters, albeit in a more cumbersome way. A possible query for the function could be:
and use
Accept: text/plain
to get a plain text output.