Learn R Programming

sendigR (version 1.0.0)

dbCreateSchema: 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)

Value

No return value, called for side effects

Arguments

dbToken

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

Details

The database must be an SQLite database - no other types of databases are supported by this function.

Examples

Run this code
if (FALSE) {
# Create an empty SQLite database and create the SEND schema
myDbToken <- initEnvironment(dbType = 'sqlite',
                             dbPath ='/mydatapath/db/send.db',
                             dbCreate = TRUE)
dbCreateSchema(myDbToken)
}

Run the code above in your browser using DataLab