{"size": 436, "ext": "js", "max_stars_repo_path": "database/dataContexts/mysqlDataContext.js", "max_stars_repo_name": "AyberkCakar/JSE-Serve", "max_stars_repo_stars_event_min_datetime": "2021-04-04T17:16:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-04T17:16:20.000Z", "max_issues_repo_path": "database/dataContexts/mysqlDataContext.js", "max_issues_repo_name": "frknsgt/CL-Serve", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "database/dataContexts/mysqlDataContext.js", "max_forks_repo_name": "frknsgt/CL-Serve", "max_forks_repo_forks_event_min_datetime": "2021-02-19T10:31:28.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-10T04:13:31.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 25.6470588235, "max_line_length": 51, "alphanum_fraction": 0.623853211}
const mysql = require('mysql');
const dataContext = require('../base/dataContext');

class MysqlDataContext extends dataContext {
    constructor() { }

    static connection() {
        return mysql.createPool({
            host: process.env.DB_HOST,
            user: process.env.DB_USER,
            password: process.env.DB_PASS,
            database: process.env.DB_DATABASE,
        });
    }
}

module.exports = MysqlDataContext;