create a connection detail for an example OHDSI results database
Source:R/Helpers.R
getExampleConnectionDetails.Rd
This returns an object of class `ConnectionDetails` that lets you connect via `DatabaseConnector::connect()` to the example result database.
Usage
getExampleConnectionDetails(exdir = tempdir())
Value
An object of class `ConnectionDetails` with the details to connect to the example OHDSI result database
Details
Finds the location of the example result database in the package and calls `DatabaseConnector::createConnectionDetails` to create a `ConnectionDetails` object for connecting to the database.
See also
Other helper:
kableDark()
,
printReactable()
,
removeSpaces()
Examples
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
#> Connecting using SQLite driver