Skip to content

Instantly share code, notes, and snippets.

@boazsender
Created February 13, 2011 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boazsender/825155 to your computer and use it in GitHub Desktop.
Save boazsender/825155 to your computer and use it in GitHub Desktop.
Quick script for creating many databases in couchdb.
var databases = ['list', 'of', 'databases'];
$.each( databases, function(iterator, database) {
$.ajax({
url: 'http://127.0.0.1:5984/' + database,
type: 'PUT',
success: function(response){
console.log(response);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment