Skip to content

Instantly share code, notes, and snippets.

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 AlexMikhalev/3effbaf87e0d1576e01612e6e0f5e3c2 to your computer and use it in GitHub Desktop.
Save AlexMikhalev/3effbaf87e0d1576e01612e6e0f5e3c2 to your computer and use it in GitHub Desktop.
Import an archive full of JSONs into CouchDB
#!/bin/bash
#json per line (same result, but for example can use jq to set _id)
7z x -so $1 | jq -c . | couchimport --db mydb --type jsonl
#!/bin/bash
#json stream
7z x -so $1 | couchimport --db mydb --type jsonl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment