2021-06-09 00:19:01 +00:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
% Please edit documentation in R/downloadCurrentDdl.R
|
|
|
|
\name{downloadCurrentDdl}
|
|
|
|
\alias{downloadCurrentDdl}
|
|
|
|
\title{Get current DDL sitting on the master branch}
|
|
|
|
\usage{
|
2021-08-18 18:24:45 +00:00
|
|
|
downloadCurrentDdl(
|
|
|
|
githubPath = "OHDSI/CommonDataModel",
|
2021-06-09 00:19:01 +00:00
|
|
|
pathToCsv = "Sql\%20Server/OMOP\%20CDM\%20sql\%20server\%20ddl.txt",
|
2021-08-18 18:24:45 +00:00
|
|
|
outputFile = paste0("inst/sql/sql_server/OMOP CDM ddl ", Sys.Date(), ".sql")
|
|
|
|
)
|
2021-06-09 00:19:01 +00:00
|
|
|
}
|
|
|
|
\arguments{
|
|
|
|
\item{githubPath}{The path for the GitHub repo containing the package (e.g. 'OHDSI/CommonDataModel').}
|
|
|
|
|
|
|
|
\item{pathToCsv}{The path for the snapshot inside the package.}
|
|
|
|
|
|
|
|
\item{outputFile}{The path where the file should be saved.}
|
|
|
|
}
|
|
|
|
\description{
|
|
|
|
Get current DDL sitting on the master branch
|
|
|
|
}
|
|
|
|
\details{
|
|
|
|
This function gets the current ddl on the CDM master branch. It will be taken from the Sql Server folder.
|
|
|
|
The default location is
|
|
|
|
\code{inst/settings/currentOmopDdl.sql}.
|
|
|
|
}
|
|
|
|
\examples{
|
|
|
|
\dontrun{
|
2021-08-19 15:49:36 +00:00
|
|
|
downloadCurrentDdl("OHDSI/CommonDataModel",
|
|
|
|
pathToCsv="Sql\%20Server/OMOP\%20CDM\%20sql\%20server\%20ddl.txt")
|
2021-06-09 00:19:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|