db_schema_create {dm} | R Documentation |
Create a schema on a database
Description
db_schema_create()
creates a schema on the database.
Usage
db_schema_create(con, schema, ...)
Arguments
con |
An object of class |
schema |
Class |
... |
Passed on to the individual methods. |
Details
Methods are not available for all DBMS.
An error is thrown if a schema of that name already exists.
The argument schema
(and dbname
for MSSQL) can be provided as SQL
objects.
Keep in mind, that in this case it is assumed that they are already correctly quoted as identifiers
using DBI::dbQuoteIdentifier()
.
Additional arguments are:
-
dbname
: supported for MSSQL. Create a schema in a different database on the connected MSSQL-server; default: database addressed bycon
.
Value
NULL
invisibly.
See Also
Other schema handling functions:
db_schema_drop()
,
db_schema_exists()
,
db_schema_list()