Skip to content

Commit

Permalink
prepare for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Glynn Bird committed Sep 19, 2023
2 parents 9c42fc3 + 56da7af commit cead34a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 42 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,16 @@ Listen to db updates, the available `params` are:
* `params.timeout` – Number of seconds until CouchDB closes the connection. Default is 60.
* `params.heartbeat` – Whether CouchDB will send a newline character (\n) on timeout. Default is true.

### nano.info([callback])

Fetch information about the CouchDB cluster:

```js
const info = await nano.info()
```

The response is an object with [CouchDB cluster information](https://docs.couchdb.org/en/stable/intro/api.html#server).

## Document functions

### db.insert(doc, [params], [callback])
Expand Down Expand Up @@ -585,9 +595,10 @@ const response = await alice.bulk({ docs: documents })
List all the docs in the database .

```js
const doclist = await alice.list().then((body)
doclist.rows.forEach((doc) => {
console.log(doc);
const doclist = await alice.list().then((body)=>{
body.rows.forEach((doc) => {
console.log(doc);
})
});
```

Expand Down
40 changes: 1 addition & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cead34a

Please sign in to comment.