In rust, I'm using mysql crate to make query with exec_first()
function like this :
let query = r"SELECT NAME from MY_TABLE where VALUE=:age";
let datas = params!{"age"=> 2};
let reqres = pdb.conn.exec_first(query, datas)
.expect("query failed")
.expect("Can't get age");
dbg!(&reqres);
I understand this is the safe way to do it.
It works but, if I want to test the request in mysql> console, is there a way to print the datas interpolated request ?