Skip to content

Commit

Permalink
initial IRIS setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeboe committed Oct 10, 2024
1 parent cc2f38d commit 6009263
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ if (Sys.getenv("DONT_DOWNLOAD_JDBC_DRIVERS", "") != "TRUE") {
downloadJdbcDrivers("spark")
downloadJdbcDrivers("snowflake")
downloadJdbcDrivers("bigquery")
downloadJdbcDrivers("iris")

if (testthat::is_testing()) {
withr::defer({
Expand Down Expand Up @@ -185,6 +186,23 @@ if (Sys.getenv("CDM_BIG_QUERY_CONNECTION_STRING") != "") {
}
}



# InterSystems IRIS
if (Sys.getenv("CDM_IRIS_CONNECTION_STRING") != "") {
testServers[[length(testServers) + 1]] <- list(
connectionDetails = details <- createConnectionDetails(
dbms = "iris",
user = Sys.getenv("CDM_IRIS_USER"),
password = URLdecode(Sys.getenv("CDM_IRIS_PASSWORD")),
connectionString = Sys.getenv("CDM_IRIS_CONNECTION_STRING")
),
NULL,
cdmDatabaseSchema = Sys.getenv("CDM_IRIS_CDM53_SCHEMA"),
tempEmulationSchema = Sys.getenv("CDM_IRIS_OHDSI_SCHEMA")
)
}

# SQLite
sqliteFile <- tempfile(fileext = ".sqlite")
if (testthat::is_testing()) {
Expand Down

0 comments on commit 6009263

Please sign in to comment.