Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return cb(null, {
result: {
inserted: options.customPrimaryKey
}
});
}
// ╔═╗╔═╗╦═╗╔═╗╔═╗ ┌─┐ ┬ ┬┌─┐┬─┐┬ ┬ ┬─┐┌─┐┌─┐┬ ┬┬ ┌┬┐┌─┐
// ╠═╝╠═╣╠╦╝╚═╗║╣ │─┼┐│ │├┤ ├┬┘└┬┘ ├┬┘├┤ └─┐│ ││ │ └─┐
// ╩ ╩ ╩╩╚═╚═╝╚═╝ └─┘└└─┘└─┘┴└─ ┴ ┴└─└─┘└─┘└─┘┴─┘┴ └─┘
// If there was a query type given, parse the results.
var queryResults = report.result;
if (options.queryType) {
try {
queryResults = MySQL.parseNativeQueryResult({
queryType: options.queryType,
nativeQueryResult: report.result
}).execSync();
} catch (e) {
return cb(e);
}
}
return cb(null, queryResults);
}
});