Create local cache from a Moodle Database.

mdl_create_cache(
  con = mdl_get_connection(use_cache = FALSE),
  format = c("sqlite"),
  tbl_prefix = "mdl_",
  output_dir = mdl_get_cache_dir(),
  output_filename = mdl_get_cache_filename()
)

Arguments

con

a database connection (to a moodle database)

format

output format (mysql, csv)

tbl_prefix

Moodle DB table prefix

output_dir

where does the cache go

output_filename

filename (in the case of sqlite output), or prefix (in_case of CSV download)

Value

invisible(NULL)