Skip to content

Instantly share code, notes, and snippets.

@thruflo
Created December 6, 2009 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thruflo/250198 to your computer and use it in GitHub Desktop.
Save thruflo/250198 to your computer and use it in GitHub Desktop.
>>> doc = db['foo']
>>> doc
{u'a': 1, u'_rev': u'1-23202479633c2b380f79507a776743d5', u'_id': u'foo'}
>>> doc.update({'a': 2})
>>> db.save_doc(doc)
>>> db['foo']
{u'a': 2, u'_rev': u'2-71173597778497e0a6aa176963f222db', u'_id': u'foo'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment