createCdDatabaseDataSource.Rd
use this to create an interface to cohort diagnostics results data NOTE: I think this would make a good R6 class for other objects in this package so you could query them outside of a shiny app. E.g. if you wanted to make a custom R markdown template
createCdDatabaseDataSource(
connectionHandler,
resultDatabaseSettings,
dataModelSpecificationsPath = system.file("cohort-diagnostics-ref",
"resultsDataModelSpecification.csv", package = utils::packageName()),
dataMigrationsRef = system.file("cohort-diagnostics-ref", "migrations.csv", package =
utils::packageName()),
displayProgress = FALSE
)
An instance of a ResultModelManager::connectionHander - manages a connection to a database.
a list containing the result schema and prefixes
The path to a file containing specifications for the data model used by the database.
The path to a file listing all migrations for the data model that should have been applied
display a progress messaage (can only be used inside a shiny reactive context)
An object of class `CdDataSource`.