Add docker-compose files and requirements
[releng.git] / utils / test / vnfcatalogue / VNF_Catalogue / database.js
1 /*******************************************************************************
2  * Copyright (c) 2017 Kumar Rishabh and others.
3  *
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Apache License, Version 2.0
6  * which accompanies this distribution, and is available at
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *******************************************************************************/
9
10 var mysql = require('mysql');
11
12 var pool = mysql.createPool({
13   host: process.env.DB_HOST,
14   user: process.env.DB_USER,
15   password: process.env.DB_PASSWORD,
16   database: process.env.DB_DATABASE,
17   connectionLimit: 50,
18   supportBigNumbers: true,
19   multipleStatements: true,
20   dateStrings: 'date'
21 });
22
23 exports.pool = pool;