how to set group=True in couchdb-python -
group = how is it possible to set couchdb-python? Import server from couchdb.mapping import from couchdb document, textfield, integerfield, datetime field, viewfiled server = server () db = server.credit ('python-test2') class person (c. Document): _id = TextField () name = TextField () age = integer field () by_name = ViewField ('people', '' '\ function (doctor) {emit (doc.name, doc);}' '') person = Person (_id = 'Person1', name = 'person.store (db) (person.by_name.map_fun) for line in John Doe db.quire: print line < P>
is true for the line in < / Pre>
Comments
Post a Comment