buildRelease {CommonDataModel}R Documentation

Create OMOP CDM SQL files

Description

Writes DDL, ForeignKey, PrimaryKey and index SQL files for given cdmVersion and targetDialect to the 'ddl' folder in specifed output folder.

Usage

buildRelease(
  cdmVersions = listSupportedVersions(),
  targetDialects = listSupportedDialects(),
  outputfolder = file.path(tempdir(), "inst", "ddl")
)

Arguments

cdmVersions

The versions of the CDM you are creating, e.g. 5.3, 5.4. Defaults to all supported CDM versions.

targetDialects

A character vector of target dialects. Defaults to all supported dialects.

outputfolder

The base folder where the SQL files will be written. Subfolders will be created for each cdmVersion and targetDialect.

Value

Writes DDL, ForeignKey, PrimaryKey and index SQL files for given cdmVersion and targetDialect to the 'ddl' folder in specifed output folder.


[Package CommonDataModel version 0.2.0 Index]