Created
January 26, 2019 22:55
-
-
Save vNNi/5aa79a62c0693f85f8eede180d04ab2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createDBConnection() { | |
return mysql.createConnection({ | |
multipleStatements: true, | |
host: process.env.DB_HOST, | |
port: process.env.DB_PORT, | |
user: process.env.DB_USER, | |
database: process.env.DB_NAME, | |
password: process.env.DB_PASSWORD | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment