Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

(#564) - Updated docs to include allDbs api

  • Loading branch information...
commit 64857d2357d9e5b44da65a9b7c2e41380a0b4e24 1 parent beaf460
Michael Yong ymichael authored
Showing with 4 additions and 22 deletions.
  1. +4 −22 docs/api.md
26 docs/api.md
View
@@ -29,33 +29,15 @@ Most of the Pouch API is exposed as `fun(arg, [options], [callback])` Where both
## List all databases
- Pouch._all_dbs(callback)
+ Pouch.allDbs(callback)
Retrieves all databases from PouchDB.
- Pouch._all_dbs(function(err, response) {
+ Pouch.allDbs(function(err, response) {
// Response:
// [
- // {
- // "doc": {
- // "_id": "idb-test",
- // "_rev": "1-1795609403689f4386a031145bcec277",
- // "dbname": "idb://test"
- // },
- // "id": "idb-test",
- // "key": "idb-test",
- // "value": Object
- // },
- // {
- // "doc": {
- // "_id": "idb-test2",
- // "_rev": "1-e4012976487ce83d664b4406b23d079a",
- // "dbname": "idb://test2"
- // },
- // "id": "idb-test2",
- // "key": "idb-test2",
- // "value": Object
- // }
+ // "idb://testdb",
+ // "idb://testdb2"
// ]
})
Please sign in to comment.
Something went wrong with that request. Please try again.