Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created October 9, 2009 15:04
Show Gist options
  • Select an option

  • Save brandon-beacher/206080 to your computer and use it in GitHub Desktop.

Select an option

Save brandon-beacher/206080 to your computer and use it in GitHub Desktop.
Couch.discover('localhost', 5984, function(couch) {
var aDoc = { foo: 'bar' };
couch.aDatabase.post(aDoc, function(response, body) {
puts('got response ' + response.statusCode + ' with body ' + body);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment