Closed GoogleCodeExporter closed 8 years ago
Just read Document.store(), sorry for the noise!
Original comment by simonmetson@googlemail.com
on 3 Dec 2008 at 11:42
Database.create() should only be used when you want CouchDB to generate an ID
for you. If you already have an
ID, you should use:
db[id] = doc
And yes, in that case, if the doc already has an _id field, it will be
overwritten.
Maybe this is less clear than I had hoped, but I'm not sure making create() use
an already supplied ID would be a
clean solution.
Original comment by cmlenz
on 1 Jul 2009 at 3:18
Original issue reported on code.google.com by
simonmetson@googlemail.com
on 3 Dec 2008 at 6:26