jo / couchdb-push

Deploy CouchDB documents from directory, JSON or CommonJS module.
Other
40 stars 9 forks source link

How to push a bunch of sample documents? #132

Open benel opened 4 months ago

benel commented 4 months ago

Thank you very much for your nice set of CouchDB tools, @jo!

For now I've used a dockerized version of the antique python couchapp.

I've just tested replacing couchapp push with your couchdb-push and it works like a charm.

However, in my testing process, I also use couchapp pushdocs to bootstrap a database with sample documents needed by tests. couchdb-push doesn't seem to be suited with this since pushing the folder creates a single document and iterating on each document from the shell is far too slow.

Is there a different way (option) to use couchdb-push to push each JSON file of a folder as a CouchDB document?

Or should I use couchdb-bootstrap for that? If yes, is there a way to do this without adding one or two folder levels (for server and database)?

Best regards.