Skip to content

Commit dc122d4

Browse files
authored
Merge pull request #272 from neighbourhoodie/docs-db-create-options
Document the options to `db.create()`
2 parents c84d0a4 + 127a45c commit dc122d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,12 @@ db.insert(p).then((response) => {
296296

297297
## Database functions
298298

299-
### nano.db.create(name, [callback])
299+
### nano.db.create(name, [opts], [callback])
300300

301-
Creates a CouchDB database with the given `name`:
301+
Creates a CouchDB database with the given `name`, with options `opts`.
302302

303303
```js
304-
await nano.db.create('alice')
304+
await nano.db.create('alice', { n: 3 })
305305
```
306306

307307
### nano.db.get(name, [callback])

0 commit comments

Comments
 (0)