Data Transfer from MySQL to BigQuery
$ npm i mysql-to-bigquery --save
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) {
});
ToDo
MIT