Skip Menu |

This queue is for tickets about the Storable-CouchDB CPAN distribution.

Report information
The Basics
Id: 65691
Status: rejected
Worked: 30 min
Priority: 0/
Queue: Storable-CouchDB

People
Owner: MRDVT [...] cpan.org
Requestors: MRDVT [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.04
Fixed in: (no value)



Subject: Regarding Storable::CouchDB - list of all databases
Liam Zdenek February 12 at 4:29pm Report --- I was using your module - and I think there is some missing functionality. I want to request a list of all databases. I don't see this function documented or in the module source. Does the module support it? If so, how do I do this? If not, is there a workaround that I can apply or an update you can submit? Liam Zdenek
Liam, Thanks for the feedback but I find both the list of databases and the list of keys in the database out of scope for my package. Show quoted text
> I want to request a list of all databases. I don't see this function > documented or in the module source. > Does the module support it?
No, I feel that is out of scope for the package. Show quoted text
> If not, is there a workaround that I can apply or an update you can > submit?
They are easy to get from the CouchDB::Client if you need it. Assume: CouchDB on localhost perl -MStorable::CouchDB -e 'print join(", ", @{Storable::CouchDB->new- Show quoted text
>_client->listDBNames}), "\n";'
You can also get a list of docs with this code. Assume: default database perl -MStorable::CouchDB -e 'print join(", ", map {$_->id} @ {Storable::CouchDB->new->_db->listDocs}), "\n";' Thanks, Mike