node-oracle
node-oracle copied to clipboard
I want debug return sql
When my sql particularly complex, I hope to be able to output sql, and replaces the placeholder
like that:
var query = oracle.execute('select * from task where userId = :1 and taskId = :2', [1, 2], function() {
// ...
});
console.log('debug sql: %s', query.sql);
// debug sq: select * from task where userId = 1 and taskId = 2