In the project I’m working on, database queries that were run are saved to a different database. Presently, the statements are prepared manually, but that allows for the exact query to get stored as a log of sorts
Is there a way to update this to prepared statements (
runPrepQuery) and get the compiled statement easily? Is there any sort of tracing available?