From the mysql2 readme we read :
MySQL2 is mostly API compatible with mysqljs
Which package has an option defined as :
- debug: Prints protocol details to stdout. Can be true/false or an array of packet type names that should be printed. (Default: false)
This option even has an example :
var connection = mysql.createConnection({debug: ['ComQueryPacket', 'RowDataPacket']});
However, setting this option with either true
, "ComQueryPacket"
and/or "RowDataPacket"
vomits a ton load of irrelevant data; all I care is to have the SQL query and variables being sent. How can this be done with this package?