lanto03 / couchdb-python

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

Consider DB deletion semantics #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I just realized that the DB creation semantics may not be consistent.

For example creation is;

server.create() but deletion is del server[db_id]

It escaped my attention for a while until I realized that it doesn't mirror
document creation and deletion.

For example
doc = db.create['some_id']
db.delete(doc)

I think "del doc" also works but it may be worth adding server.delete(db)
just to be consistent.

Obviously it's minor, but just recording it for posterity :)

Original issue reported on code.google.com by wjh...@gmail.com on 4 Mar 2009 at 9:15

GoogleCodeExporter commented 8 years ago
Changed in r158.

Original comment by cmlenz on 29 Jun 2009 at 2:14