View source: R/all_db_wrapper_fns.R
dbSchema | R Documentation |
Checks the existence, and if necessary, creates a schema.
dbSchema(conn, name, display = TRUE, exec = TRUE)
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
|
If exec = TRUE
, returns TRUE
if the schema exists
(whether it was already available or was just created).
Mathieu Basille mathieu@basille.org
The PostgreSQL documentation: http://www.postgresql.org/docs/current/static/sql-createschema.html
## Not run:
dbSchema(conn, name = "schema", exec = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.