Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_all_dbs inconsistant. Can we remove the prefix 'leveldb:' ? #22

Closed
ryanramage opened this issue Aug 20, 2013 · 1 comment
Closed

_all_dbs inconsistant. Can we remove the prefix 'leveldb:' ? #22

ryanramage opened this issue Aug 20, 2013 · 1 comment

Comments

@ryanramage
Copy link
Contributor

$ curl -X PUT http://localhost:15984/mydb
{
  "ok": true
}

$ curl -X GET http://localhost:15984/_all_dbs 
[
  "leveldb://mydb"
]

$ curl -X GET http://localhost:15984/leveldb:mydb
{
  "status": 404,
  "error": "not_found",
  "reason": "no_db_file"
}

$ curl -X GET http://localhost:15984/mydb
{
  "db_name": "mydb",
  "doc_count": 0,
  "update_seq": 0
}

As you can see, consumers of the _all_dbs api cant just use the name of the db as per couch. Would it be ok if the _all_dbs endpoint removed the 'leveldb:' prefix from each name?

@ryanramage
Copy link
Contributor Author

moving to right place: pouchdb/express-pouchdb#3

gr2m pushed a commit that referenced this issue Jun 26, 2017
Update pouchdb to version 6.1.1 🚀
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant