Skip to contents

Initialize gaiaDB

Usage

initializeDatabase(connectionDetails, overwrite = FALSE, testing = FALSE)

Arguments

connectionDetails

(list) An object of class connectionDetails as created by the createConnectionDetails function

overwrite

(boolean) Potential loss of data, proceed with caution! Drop the backbone schema and reinitialize? You will lose any custom data or variable sources that you have added if you overwrite the backbone schema.

Value

(database schema) The gaiaDB backbone schema is added to the database in connectionDetails

Examples

if (FALSE) {
 connectionDetails <- DatabaseConnector::createConnectionDetails(
   dbms = "postgresql",
   server = "", # name of the server
   port = 5432,
   user="postgres", # username to access server
   password = "mysecretpassword")

 initializeDatabase(connectionDetails)
}