Created
February 13, 2011 21:34
-
-
Save boazsender/825155 to your computer and use it in GitHub Desktop.
Quick script for creating many databases in couchdb.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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