Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function (async_done: Function) {
console.log('execute an ad hoc query with temporary connection.');
let q = "declare @s NVARCHAR(MAX) = ?; select @s as s";
sql.query(conn_str, q, ['node is great'], (err, res) => {
Assert.ifError(err);
console.log(res);
async_done();
});
},