lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Document that list(server) == _all_dbs #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently it's very hard to find how to get the list of all databases on a 
server. Document the __iter__ function on couchdb.client.Server

Original issue reported on code.google.com by miki.teb...@gmail.com on 2 Jun 2010 at 6:19

GoogleCodeExporter commented 8 years ago
Hard to find?

client.py:
class Server(object):
    ...
    This class behaves like a dictionary of databases. For example, to get a
    list of database names on the server, you can simply iterate over the
    server object.

and Server.__iter__ has doc:
    Iterate over the names of all databases.

Original comment by sen...@gmail.com on 3 Jun 2010 at 4:29

GoogleCodeExporter commented 8 years ago
I was looking for that for about 30min and did see that. My bad, sorry.

Original comment by miki.teb...@gmail.com on 3 Jun 2010 at 6:57

GoogleCodeExporter commented 8 years ago

Original comment by matt.goo...@gmail.com on 3 Jun 2010 at 7:05