Created
March 24, 2014 07:55
-
-
Save issa-tseng/9735959 to your computer and use it in GitHub Desktop.
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
// create a soda producer based on our configuration | |
var producer = new soda.Producer(update.cname, update.credentials); | |
// perform the actual insert based on our parse and our configurations | |
producer.operation() | |
.withDataset(update.id) | |
.add(importData) | |
.on('success', function(result) { console.log('Successfully wrote ' + importData.length + ' rows from ' + update.file + ' to ' + update.id + '.'); }) | |
.on('error', function(error) { console.error('Error writing ' + importData.length + ' rows from ' + update.file + ' to ' + update.id + '!'); }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment