Upload exported results to a database
uploadExportedResults(
connectionDetails,
databaseSchema,
append = FALSE,
exportFolder,
cohorts
)
An R object of type connectionDetails
created using the
DatabaseConnector::createConnectionDetails()
function.
The name of the database schema where the results will be written.
Append the results to existing tables? Can be used for uploading results from multiple databases into a single results schema.
The folder containing the CSV files to upload, as generated
using the exportToCsv()
function.
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.
Does not return anything. Is called for the side-effect of having the results uploaded to the server.