change to SqlRender supported dialects instead of hard coded values
This commit is contained in:
parent
77831c5326
commit
edcc3f1e2e
|
@ -31,7 +31,8 @@
|
||||||
writeDdl <- function(targetDialect, cdmVersion, outputfolder, cdmDatabaseSchema = "@cdmDatabaseSchema") {
|
writeDdl <- function(targetDialect, cdmVersion, outputfolder, cdmDatabaseSchema = "@cdmDatabaseSchema") {
|
||||||
|
|
||||||
# argument checks
|
# 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(cdmVersion %in% listSupportedVersions())
|
||||||
stopifnot(is.character(cdmDatabaseSchema))
|
stopifnot(is.character(cdmDatabaseSchema))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue