Checks if the provided schema is a valid pgtraj schema, and creates one if it does not exist.
pgtrajSchema(conn, schema = "traj")
Connection object created with RPostgreSQL.
Character string. Name of the schema that stores or will store the pgtraj data model.
Creates a schema to store
pgtrajs in the database by
calling a SQL script from
./sql/traj_schema.sql. The schema
name defaults to
traj. If a schema with the provided name
already exists in the database, it checks if it contains all the
required tables. The function does not attempt to repair the
schema if all pgtraj tables are not present (e.g. because some
were manually deleted). In this case, a new pgtraj schema needs
to be created, or the existing schema needs to be deleted and
The function has its own standalone transaction control.
TRUE if the schema exists (whether it was already
available or was successfully created).
Balázs Dukai [email protected]
1 2 3 4 5
## Not run: # Check (or create) pgtraj schema with name "traj_1" pgtrajSchema(conn,"traj_1") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.