{"size": 477, "ext": "js", "max_stars_repo_path": "TBQForms_server/config/db.config.js", "max_stars_repo_name": "Alexander3006/TBQForms_2.0", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "TBQForms_server/config/db.config.js", "max_issues_repo_name": "Alexander3006/TBQForms_2.0", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "TBQForms_server/config/db.config.js", "max_forks_repo_name": "Alexander3006/TBQForms_2.0", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.85, "max_line_length": 54, "alphanum_fraction": 0.677148847}
'use strict';

const {Pool} = require('pg');

const pool = new Pool({
  host: process.env.DB_HOST,
  port: process.env.DB_PORT,
  database: process.env.DATABASE,
  user: process.env.DB_USER,
  password: process.env.DB_PASSWORD,
});
(async () => {
  await pool.query(await require('fs').promises
  .readFile('./init_database/TBQForms.sql', 'utf-8'));
  console.dir(await require('fs').promises
  .readFile('./init_database/TBQForms.sql', 'utf-8'))
})();

module.exports = pool;
