Skip to content

Instantly share code, notes, and snippets.

@fnakstad
Created February 17, 2016 00:57
Show Gist options
  • Save fnakstad/bc48cb61ddcecf2245ab to your computer and use it in GitHub Desktop.
Save fnakstad/bc48cb61ddcecf2245ab to your computer and use it in GitHub Desktop.
import DbManager from './dbManager';
let dbManager = new DbManager(process.env.DB_CONN_STRING);
(async function main() {
for(let entity of json) {
let { entityId } = await dbManager.insertEntity(entity);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment