Skip to content

Instantly share code, notes, and snippets.

@patrickdevivo
Created August 12, 2021 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickdevivo/f28300905659a7d886b4afcac0427914 to your computer and use it in GitHub Desktop.
Save patrickdevivo/f28300905659a7d886b4afcac0427914 to your computer and use it in GitHub Desktop.
SELECT
count(*),
json_extract(value, '$.mod.path') AS dep
FROM
google_go_mod,
json_each(go_mod_to_json(go_mod), '$.require')
GROUP BY dep ORDER BY count(*);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment