R/uploadToDatabase.R
createPlpResultTables.Rd
This function executes a large set of SQL statements to create tables that can store models and results
createPlpResultTables(
connectionDetails,
targetDialect = "postgresql",
resultSchema,
deleteTables = T,
createTables = T,
tablePrefix = "",
tempEmulationSchema = getOption("sqlRenderTempEmulationSchema"),
testFile = NULL
)
The database connection details
The database management system being used
The name of the database schema that the result tables will be created.
If true any existing tables matching the PatientLevelPrediction result tables names will be deleted
If true the PatientLevelPrediction result tables will be created
A string that appends to the PatientLevelPrediction result tables
The temp schema used when the database management system is oracle
(used for testing) The location of an sql file with the table creation code
Returns NULL but creates the required tables into the specified database schema(s).
This function can be used to create (or delete) PatientLevelPrediction result tables