My favorites | Sign in
Project Home
Repository:
Checkout   Browse   Changes   Clones  
Changes to /GettingStarted.wiki
000000000000 vs. a9dcaca738f2 Compare: vs.  Format:
Revision a9dcaca738f2
Go to: 
Project members, sign in to write a code review
/GettingStarted.wiki /GettingStarted.wiki   a9dcaca738f2
  1 #summary Introduction to using couchdb-python.
  2
  3 = Introduction =
  4
  5 {{{
  6 >>> import couchdb
  7 >>> couch = couchdb.Server()
  8 >>> db = couch.create('test')
  9 >>> db
  10 <Database 'test'>
  11 >>> db['foo'] = {'bar': 'test'}
  12 >>> db['foo']
  13 <Document 'foo'@'1-1d1b1ba13d97badec02a57adb942cd42' {'bar': 'test'}>
  14 >>> doc = db['foo']
  15 >>> db.delete(doc)
  16 >>> couch.delete('test')
  17 }}}
Powered by Google Project Hosting