
Collect, print, and save a database activity report in one call
monitor_db.RdConvenience wrapper that calls get_db_activity,
print.db_activity, and save_db_activity_report.
Arguments
- con
A database connection from
call.mydb.- output_dir
Directory for the HTML report (passed to
save_db_activity_report). Set toNULLto skip saving.- open
Logical. Open the HTML report in the browser? Default
TRUE.
Examples
if (FALSE) { # \dontrun{
con <- call.mydb()
monitor_db(con)
# Save to a specific folder without opening browser
monitor_db(con, output_dir = "~/db_reports", open = FALSE)
} # }