db_schema_exists()
checks, if a schema exists on the database.
db_schema_exists(con, schema, ...)
An object of class "src"
or "DBIConnection"
.
Class character
or SQL
, name of the schema
Passed on to the individual methods.
A boolean: TRUE
if schema exists, FALSE
otherwise.
Methods are not available for all DBMS.
Additional arguments are:
dbname
: supported for MSSQL. Check if a schema exists on a different
database on the connected MSSQL-server; default: database addressed by con
.
Other schema handling functions:
db_schema_create()
,
db_schema_drop()
,
db_schema_list()