We will take an introductory look at CouchDB with a brief review of the NoSQL movement. We will spend most of the time in actual code and examples from real projects and the Futon web interface, giving a better feeling for what's going on. Plenty of time for Q&A.
10. But here's some: try { //Get the post (a StdClass)... $post = $this->sag->get('postID')->body; //...update its info... $post->views++; //..and send it back to the couch. return $this->sap->put($post->_id, $post)->body->ok; } catch(SagCouchException $e) { //The requested post doesn't exist - oh no! if($e->getCode() == "404") $e = new Exception("That post doesn't exist."); throw $e; }
56. List and Show functions – convert to a different output type (RSS, etc.)
57. couchdb-lucene – use map style functions to populate a lucene feed
58. Example Write Diagram PHP Couch Map input to value objects Validate your value objects React: send to couch, return an error, etc.
59. Example Write Diagram PHP Couch Map input to value objects Validate your value objects React: send to couch, return an error, etc.
60. Couch App Couch http://www.github.com/couchapp/couchapp/ Map input to value objects Validate your value objects React: send to couch, return an error, etc.