{"id":17446015,"url":"https://github.com/jamen/pull-couchdb","last_synced_at":"2025-04-02T11:23:08.451Z","repository":{"id":96785057,"uuid":"130525986","full_name":"jamen/pull-couchdb","owner":"jamen","description":"Pull-streams for reading and writing in CouchDB.","archived":false,"fork":false,"pushed_at":"2018-04-22T01:45:27.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T02:24:53.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamen.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-22T01:42:01.000Z","updated_at":"2021-12-19T15:28:08.000Z","dependencies_parsed_at":"2023-07-14T08:20:24.699Z","dependency_job_id":null,"html_url":"https://github.com/jamen/pull-couchdb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-couchdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-couchdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-couchdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-couchdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/pull-couchdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246803338,"owners_count":20836541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-17T18:20:34.409Z","updated_at":"2025-04-02T11:23:08.429Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# pull-couchdb\n\nPull-streams for reading and writing in CouchDB.\n\n## Install\n\n```sh\nnpm i pull-couchdb\n```\n\n## Usage\n\n### `allDocs(db)`\n\nRequests CouchDB's [`GET /{db}/_all_docs`][1] and streams the results.\n\n```js\npull(\n    allDocs('http://localhost:5984/foo_storage'),\n    drain(record =\u003e {\n        // ...\n    })\n)\n```\n\n### `saveEach(db, params)`\n\nSaves each object to CouchDB using [`POST /{db}`][2].\n\n```js\npull(\n    values([\n        { test: 'Hello world' }\n        { test: 'foo' },\n        { test: 'bar' }\n    ]),\n    saveEach('http://localhost:5984/foo_storage'),\n    collect((err, results) =\u003e {\n        // ...\n    })\n)\n```\n\n[1]: http://docs.couchdb.org/en/2.1.1/api/database/bulk-api.html#api-db-all-docs\n[2]: http://docs.couchdb.org/en/2.1.1/api/database/common.html#post--db","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-couchdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fpull-couchdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-couchdb/lists"}