daleharvey/pouchdb — pull request #266 by calvinmetcalf (2012-12-08 00:42:22+00:00)
Title: Fetch uuids from remote http for use in POST requests

grabs uuids from a remote http source so that they are attached to POST before being sent talked about in #250.

uuid has a list property that contains a ... list of uuids, it also has a get property that takes an optional options and a callback, the only option it takes is "count" which is how many uuids to take and it defaults to 10.

POST now checks the size of the list and if its greater then 0 pops one off the end, if 0 it calls uuid.get and then pops one off the end.

Lastly it does a PUT request with the new uuid as _id.

Would it make sense to expose the number of uuids to fetch as an option when creating an http adaptor