Re:Sq.io: jq for databases and more
by mschuster91 on Monday October 07, 2024 @09:04AM
(#41765604)
Yeah, the problem is not every application can read such files. Particularly when newlines are involved, it's a hit and miss.
Re:Sq.io: jq for databases and more
by seanhunter on Monday October 07, 2024 @09:56AM
(#41766067)
Well not every application can read any file and either way "sq" isn't going going to make any difference. Like I said they are real issues but don't arise in this case.
For example, here's your list fully handled in postgres: 1. SET CLIENT_ENCODING TO 'value'; (eg 'UTF8') 2. COPY ... with FORMAT CSV DELIMITER 'delimiter_character' QUOTE 'quote_character'
Now the output format is fully specified and everything just works fine (including for input into excel)
https://www.postgresql.org/docs/current/sql-copy.html