I'm trying to understand how can I "pretty" format the below traced DB statement sqlx gives me using tracing:
2023-08-01T15:54:42.675396Z DEBUG sqlx::query:117: summary: "SELECT \"user\".* FROM \"user\" …", db.statement: "\n\nSELECT\n \"user\".*\nFROM\n \"user\"\nWHERE\n \"user\".\"id\" = $1\n", rows_affected: 0, rows_returned: 1, elapsed: 2.8366ms
Is there a way to have something like the below instead?
SELECT "user".* FROM "user" WHERE "user"."id" = '1'
I need this when something is broken and I need to debug. I'm using debug
level in this case in fact.