node-oracle icon indicating copy to clipboard operation
node-oracle copied to clipboard

I want debug return sql

Open xbl opened this issue 10 years ago • 0 comments

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

xbl avatar Jun 17 '14 04:06 xbl