Printing full SQL queries with parameters in debug mode
See original GitHub issueI am initializing prisma with {debug: true, log: ['info', 'query'],} and this is printing SQL queries without actual parameters, just ? to mask them.
Wouldn’t it be useful to print the whole thing?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:20 (5 by maintainers)
Top Results From Across the Web
Printing full SQL queries with parameters in debug mode #5026
I am initializing prisma with {debug: true, log: ['info', 'query'],} and this is printing SQL queries without actual parameters, just ? to mask ......
Read more >Print parameterized SQL - MSDN - Microsoft
I want to debug a very complicatedm sql query, ... Anyway is it possible to print it out with FULL(+Parameter values) in .NET?...
Read more >Printing all arguments to a SQL stored procedure (for SQL ...
Here's a short SQL script I made that can be used to print all the arguments passed to a given stored procedure. It's...
Read more >How to print a query string with parameter values when using ...
SQL - set to debug to log all SQL DML statements as they are executed; org.hibernate.type - set to trace to log all...
Read more >how to print a constructed query with it's parameters?
hello friends,. in order to debug my code, i wish to print my query sql. ... with unicode parameters. ... it doesn't presently...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@incompletude @pantharshit00 approach works for Nestjs as well
Right now you can use events to log the parameters like so:
We might even close this one considering it is safer to log masked output by default and also provide you a way to customize the output.