Skip to contents

Convenience wrapper that calls get_db_activity, print.db_activity, and save_db_activity_report.

Usage

monitor_db(con, output_dir = ".", open = TRUE)

Arguments

con

A database connection from call.mydb.

output_dir

Directory for the HTML report (passed to save_db_activity_report). Set to NULL to skip saving.

open

Logical. Open the HTML report in the browser? Default TRUE.

Value

A db_activity object (invisibly).

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)
} # }