View source: R/populateDBFunctions.R
dbCreateSchema | R Documentation |
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.
dbCreateSchema(dbToken)
dbToken |
Mandatory |
Databases supported are SQLite and PostgreSQL, the checkDbType function makes sure one of those types are used
No return value, called for side effects
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.