开发者

Get all design documents in CouchDB

开发者 https://www.devze.com 2022-12-30 11:41 出处:网络
How c开发者_运维问答an I get a list of all design documents in CouchDB? Using a http query, not futon.This is the exact query Futon does internally:

How c开发者_运维问答an I get a list of all design documents in CouchDB? Using a http query, not futon.


This is the exact query Futon does internally:

GET /dbname/_all_docs?startkey="_design/"&endkey="_design0"&include_docs=true


New answer for an old question. From v2.2, you can query the _design_docs endpoint for a database: See the docs for deatils, but as a simple example:

GET /dbname/_design_docs

Parameters to the endpoint are consistent with other bulk APIs, like _all_docs.


Exists for powershell a module than simply all operation with CouchDB: PSCouchDB

With this command retrieve all design docs in a specific database. To view full request, use -Verbose parameter:

Get-CouchDBDatabaseDesignDocument -Database test
0

精彩评论

暂无评论...
验证码 换一张
取 消