CouchDB Document Update Handlers (in-place updates)

The example function in-place is not the same as “in-place” updates in other databases. CouchDB still uses an append-only architecture; document update handlers still create a new doc revision, etc. Still, update handlers are quite convenient and worth learning. Suppose you have a document with an accumulator. You want to accumulate an integer in a … Read more

Serialize and Deserialize Objective-C objects into JSON

Finally we can solve this problem easily using JSONModel. This is the best method so far. JSONModel is a library that generically serialize/deserialize your object based on Class. You can even use non-nsobject based for property like int, short and float. It can also cater nested-complex JSON. Considering this JSON example: { “accounting” : [{ … Read more

Using PouchDB with MongoDB

PouchDB contributor here. 🙂 This is actually a question we get a lot, and it’s understandable, given the popularity of MongoDB. The short answer is: no, there’s no way to get a PouchDB that you can just plug into your existing MongoDB database. You might want to try Meteor.js instead. The long answer is that … Read more