createDataModelOnServer: Create the data model tables on a database server.

View source: R/BackendDatabase.R

createDataModelOnServerR Documentation

Create the data model tables on a database server.

Description

Create the data model tables on a database server.

Usage

createDataModelOnServer(
  connection = NULL,
  connectionDetails = NULL,
  schema,
  sqlFileName,
  package = "LegendT2dm"
)

Arguments

connection

An object of type connection as created using the connect function in the DatabaseConnector package. Can be left NULL if connectionDetails is provided, in which case a new connection will be opened at the start of the function, and closed when the function finishes.

connectionDetails

An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package. Can be left NULL if connection is provided.

schema

The schema on the postgres server where the tables will be created.

sqlFileName

File name of table creation SQL within package.

package

Package name containing the sqlFileName file.

Details

Only PostgreSQL servers are supported.


ohdsi-studies/LegendT2dm documentation built on July 4, 2025, 8:25 p.m.