change to SqlRender supported dialects instead of hard coded values

This commit is contained in:
Frank DeFalco 2023-05-23 13:53:13 -04:00
parent 77831c5326
commit edcc3f1e2e
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@
writeDdl <- function(targetDialect, cdmVersion, outputfolder, cdmDatabaseSchema = "@cdmDatabaseSchema") {
# argument checks
stopifnot(targetDialect %in% c("oracle", "postgresql", "pdw", "redshift", "impala", "netezza", "bigquery", "sql server", "spark", "snowflake", "synapse"))
supportedDialects <- SqlRender::listSupportedDialects()$dialect
stopifnot(targetDialect %in% supportedDialects)
stopifnot(cdmVersion %in% listSupportedVersions())
stopifnot(is.character(cdmDatabaseSchema))