Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@dch

This comment has been minimized.

Copy link

commented Feb 19, 2019

nice hack thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.