LucidDbAppLib DROP SCHEMA IF EXISTS
From Eigenpedia
Contents |
Syntax
call applib.drop_schema_if_exists(schemaName, restrictOrCascade);
Purpose
Tries to drop a schema if it exists, otherwise does nothing.
Parameters
- schemaName: name of schema to be dropped
- restrictOrCascade: only legal values are 'CASCADE' (delete schema along with everything contained in it) and 'RESTRICT' (only delete empty schemas).
Example
call applib.drop_schema_if_exists('TESTSCHEMA', 'RESTRICT');

