summaryrefslogtreecommitdiffstats
path: root/VNF_Catalogue/cronjob/database.js
blob: 8c6d0bbf4cb7118c72276f3cfe7f6752bd894847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var mysql = require('mysql');

// Hardcoding some variables for now as crontab does not seem to support
// environment variables.
var pool = mysql.createPool({
  host: 'mysql',
  user: 'vnf_user',
  password: 'vnf_password',
  database: 'vnf_catalogue',
  connectionLimit: 50,
  supportBigNumbers: true,
  multipleStatements: true,
  dateStrings: 'date'
});

exports.pool = pool;