This file contains hidden or 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
| const mysql = require('mysql'); | |
| const mysql_config = require('./mysql_config.js'); | |
| const Promise = require('bluebird'); | |
| const connection = mysql.createConnection(mysql_config); | |
| const db = Promise.promisifyAll(connection, { multiArgs: true }); | |
| db.connect(); | |
| var getProduct = function(productId, callback){ | |
| Promise.all([ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.