diff options
Diffstat (limited to 'VNF_Catalogue/cronjob/database.js')
-rw-r--r-- | VNF_Catalogue/cronjob/database.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/VNF_Catalogue/cronjob/database.js b/VNF_Catalogue/cronjob/database.js new file mode 100644 index 00000000..8c6d0bbf --- /dev/null +++ b/VNF_Catalogue/cronjob/database.js @@ -0,0 +1,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; |