Skip to content

Files

Latest commit

author
Chan Shing Fai
Nov 30, 2017
c7b8537 · Nov 30, 2017

History

History
37 lines (29 loc) · 532 Bytes

README.md

File metadata and controls

37 lines (29 loc) · 532 Bytes

mysql-to-bigquery

Data Transfer from MySQL to BigQuery

Install

$ npm i mysql-to-bigquery --save

Usage

var MySqlToBigQuery = require('mysql-to-bigquery');
var sqlToBq = new MySqlToBigQuery({
  mySqlConfig: {
    host: "localhost",
    user: "root",
    password: "password",
    database: "yourdatabase"
  },
  bigQueryConfig: {
    projectId: "xxxxxx",
    keyFilename: "/path/to/keyfile",
    dataset: "yourdataset"
  }
});

sqlToBq.exec(['users'], function(error) {

});

Tests

ToDo

License

MIT