dbSchema {rpostgis} | R Documentation |
Check and create schema.
Description
Checks the existence, and if necessary, creates a schema.
Usage
dbSchema(conn, name, display = TRUE, exec = TRUE)
Arguments
conn |
A connection object (required, even if |
name |
A character string specifying a PostgreSQL schema name. |
display |
Logical. Whether to display the query (defaults to
|
exec |
Logical. Whether to execute the query (defaults to
|
Value
If exec = TRUE
, returns TRUE
if the schema exists
(whether it was already available or was just created).
Author(s)
Mathieu Basille mathieu@basille.org
See Also
The PostgreSQL documentation: http://www.postgresql.org/docs/current/static/sql-createschema.html
Examples
## Not run:
dbSchema(conn, name = "schema", exec = FALSE)
## End(Not run)
[Package rpostgis version 1.5.1 Index]