How to use the on function from mssql
Find comprehensive JavaScript mssql.on code examples handpicked from public code repositorys.
35 36 37 38 39 40 41 42 43 44
resolve(resultados.recordset); }).catch(function (erro) { reject(erro); console.log('ERRO: ', erro); }); sql.on('error', function (erro) { return ("ERRO NO SQL SERVER (Azure): ", erro); }); }); } else if (process.env.AMBIENTE_PROCESSO == "desenvolvimento") {
0
10
1
+ 13 other calls in file
GitHub: IT19000886/GMB_BACK
36 37 38 39 40 41 42 43 44 45
resolve(result.recordsets[0]) }) .catch(err => { console.log(err); }) sql.on('error', err => { console.log(err); }) }); };
0
1
0
+ 5 other calls in file
93 94 95 96 97 98 99 100 101 102
} catch(err) { res.json({code: false}); } })() sql.on('error', err=>{ res.json({code: false}); console.log(err); }); });
0
0
0
+ 7 other calls in file
mssql.connect is the most popular function in mssql (5681 examples)