Add number of rows affected to data properties of DB::listen() #52457
Unanswered
isaiahfisher
asked this question in
Ideas
Replies: 1 comment
-
As far as I know, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, I am working to find a query that is affecting more rows than intended. My plan is to use the DB::listen() function to trace and log queries in the application. While I should be able to find the query without the number of rows affected being listed, I believe this is a valuable metric to know when logging queries.
My proposal is to add a data property to retrieve the count of rows that were affected by the query in this function. This count helps provide a clearer picture of the impact of the query on the underlying data.
Beta Was this translation helpful? Give feedback.
All reactions