uploadResultsToDatabase: Upload results to the database server

Description Usage Arguments

View source: R/UploadDataToDb.R

Description

Upload the exported results of a database-indication run into the database. Assumes the data conforms to the LEGEND data model.

Usage

1
2
3
uploadResultsToDatabase(connectionDetails, exportFolder,
  createTables = FALSE, staging = FALSE, deletePriorData = TRUE,
  skipBigTables = TRUE)

Arguments

connectionDetails

An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package.

exportFolder

Name of local folder where the export results are stored; make sure to use forward slashes (/). Do not use a folder on a network drive since this greatly impacts performance.

createTables

Create the tables on the server? This will drop the tables if they already exist prior to creating them.

staging

If TRUE, the table names on the server will have the postfix "_staging" to allow new tables to be created while old ones are in use.

deletePriorData

Should prior data (with the same keys) be deleted prior to uploading the data to avoid duplicates?

skipBigTables

Skip the covariate balance and KM tables?


OHDSI/Legend documentation built on Dec. 29, 2020, 3:52 a.m.