ali-sdk / ali-rds

Aliyun RDS client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

db.query对应的原生sql如何打印

qingfengmy opened this issue · comments

let rows = yield db.query('SELECT * FROM your_table WHERE id=:id', { id: 123 });
console.log(rows);

如何查看这个sql查询的原生sql,如果sql很复杂,需要获取原生sql查看问题

https://github.com/ali-sdk/ali-rds/blob/master/lib/client.js#L37 可以覆盖这个方法实现

非常感谢!!!