Skip to content

Instantly share code, notes, and snippets.

View artemtam's full-sized avatar
🇺🇦

Artem Tamoian artemtam

🇺🇦
View GitHub Profile

Keybase proof

I hereby claim:

  • I am artemtam on github.
  • I am artemtam (https://keybase.io/artemtam) on keybase.
  • I have a public key whose fingerprint is 799B EBC5 6234 6BFB 15F9 4D36 7D01 030D 5586 C69E

To claim this, I am signing this object:

@artemtam
artemtam / database.js
Last active November 19, 2017 17:04
NodeJS MySQL connection pool creating
const mysql = require('mysql');
const {promisify} = require('util');
const pool = mysql.createPool({
connectionLimit: 10,
host: process.env.db.host,
user: process.env.db.user,
password: process.env.db.pass,
database: process.env.db.name,
multipleStatements: true