in reply to Re^2: Retrieving content from couchdb using CouchDB::Client
in thread Retrieving content from couchdb using CouchDB::Client
Perhaps apply the retrieve method to the $db object?
if ($db->docExists('12345')) { print "hello\n"; $doc = $db->retrieve('12345'); } else { $doc = $db->newDoc('12345', undef, {'foo'=>'bar'})->create; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Retrieving content from couchdb using CouchDB::Client
by shivam99aa (Novice) on Apr 23, 2015 at 18:14 UTC |