dbCreateSchema: Create a SEND schema in an open and empty database

View source: R/populateDBFunctions.R

dbCreateSchemaR Documentation

Create a SEND schema in an open and empty database

Description

Create all the domains and variables which are described in the SEND IG versions 3.0 and 3.1 in the database - i.e. a union of domains from the SEND IG versions and in each domain a union of variables from the SEND IG versions.

Usage

dbCreateSchema(dbToken)

Arguments

dbToken

Mandatory
Token for the open database connection (see initEnvironment).

Details

Databases supported are SQLite and PostgreSQL, the checkDbType function makes sure one of those types are used

Value

No return value, called for side effects

Examples

## Not run: 
# Create an empty SQLite database and create the SEND schema
myDbToken <- initEnvironment(dbType = 'sqlite',
                             dbPath ='/mydatapath/db/send.db',
                             dbCreate = TRUE)
dbCreateSchema(myDbToken)

## End(Not run)

phuse-org/sendigR documentation built on April 5, 2025, 1:29 a.m.