rpostgis (version 1.4.3)

dbSchema: Check and create schema.

Description

Checks the existence, and if necessary, creates a schema.

Usage

dbSchema(conn, name, display = TRUE, exec = TRUE)

Value

TRUE if the schema exists (whether it was already available or was just created).

Arguments

conn

A connection object (required, even if exec = FALSE).

name

A character string specifying a PostgreSQL schema name.

display

Logical. Whether to display the query (defaults to TRUE).

exec

Logical. Whether to execute the query (defaults to TRUE). Note: if exec = FALSE, the function still checks the existence of the schema, but does not create it if it does not exists.

Author

Mathieu Basille basille@ufl.edu

See Also

Examples

Run this code
if (FALSE) {
    dbSchema(name = "schema", exec = FALSE)
}

Run the code above in your browser using DataLab