{"size": 461, "ext": "js", "max_stars_repo_path": "tamiltvdvupload.js", "max_stars_repo_name": "poovarasanvasudevan/iptvapi", "max_stars_repo_stars_event_min_datetime": "2021-07-06T04:53:24.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-01T09:35:56.000Z", "max_issues_repo_path": "tamiltvdvupload.js", "max_issues_repo_name": "poovarasanvasudevan/iptvapi", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tamiltvdvupload.js", "max_forks_repo_name": "poovarasanvasudevan/iptvapi", "max_forks_repo_forks_event_min_datetime": "2021-03-07T09:52:58.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-03T20:05:56.000Z"}
{"max_stars_count": 6, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 25.6111111111, "max_line_length": 155, "alphanum_fraction": 0.6572668113}
var mysql = require('mysql');
var tvdata = require('./api/tamilapp2.json').channels
var connection = mysql.createConnection({
  host: 'localhost',
  port: 3307,
  user: 'root',
  password: 'poosan',
  database: 'fmdb'
});

connection.connect();

tvdata.forEach(x => {
  connection.query('INSERT INTO tamiltv(name,url,logo,category) VALUES (?,?,?,?)', [x.name, x.url, x.logo, x.category], function (error, results, fields) {
    if (error) throw error;
  });
})
