Upload exported results to a database

uploadExportedResults(
  connectionDetails,
  databaseSchema,
  append = FALSE,
  exportFolder,
  cohorts
)

Arguments

connectionDetails

An R object of type connectionDetails created using the DatabaseConnector::createConnectionDetails() function.

databaseSchema

The name of the database schema where the results will be written.

append

Append the results to existing tables? Can be used for uploading results from multiple databases into a single results schema.

exportFolder

The folder containing the CSV files to upload, as generated using the exportToCsv() function.

cohorts

A data frame describing the cohorts used in the study. Should include the target, comparator, and outcome of interest cohorts. The data frame should at least have a cohortId and cohortName columns.

Value

Does not return anything. Is called for the side-effect of having the results uploaded to the server.