Skip to content

Instantly share code, notes, and snippets.

@issa-tseng
Created March 24, 2014 07:55
Show Gist options
  • Save issa-tseng/9735959 to your computer and use it in GitHub Desktop.
Save issa-tseng/9735959 to your computer and use it in GitHub Desktop.
// 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