You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently used WP-CLI to run some SQL queries.
After they run, I only got a success or failure message.
If it was a success, I did not receive any feedback about how many rows were affected.
Running the query directly in MySQL, it lets me know how many rows were affected.
It was would nice to have that metric returned or optionally returned.
Not sure if that would be part of the normal output or added as a new switch.
Thank you for your time.
The text was updated successfully, but these errors were encountered:
I would be interested in that, but I don't have a lot of time to spare in the next week or two. I can look at it after that I think. Would that be alright?
rows_affected = 0
do {
rows_affected = do_query(
"DELETE FROM messages WHERE created < DATE_SUB(NOW(),INTERVAL 3 MONTH)
LIMIT 10000"
)
} while rows_affected > 0
Hello.
I recently used WP-CLI to run some SQL queries.
After they run, I only got a success or failure message.
If it was a success, I did not receive any feedback about how many rows were affected.
Running the query directly in MySQL, it lets me know how many rows were affected.
It was would nice to have that metric returned or optionally returned.
Not sure if that would be part of the normal output or added as a new switch.
Thank you for your time.
The text was updated successfully, but these errors were encountered: