Hacker News new | ask | show | jobs
by pgr0ss 813 days ago
I think that's a fair point. Unnesting arrays in SQL can be annoying. Here is your first example with duckdb:

  duckdb -c \
    "select * from ( \
      select unnest(assets)->>'browser_download_url' as url \
      from read_json('https://api.github.com/repos/go-gitea/gitea/releases/latest') \
    ) \
    where url like '%linux-amd64'"
1 comments

In case someone else was wondering, one can get a shell-consumable output from that with

  duckdb -noheader -list