Class DropSchemaTask
Drops a schema. Use DropIfExists to drop a schema only if it exists. For MySql or MariaDb, use the DropDatabase task instead.
Implements
Inherited Members
Namespace: ETLBox.ControlFlow
Assembly: ETLBox.dll
Syntax
public sealed class DropSchemaTask : DropTask<IfSchemaExistsTask>, ILoggableTask
Constructors
DropSchemaTask()
Declaration
public DropSchemaTask()
DropSchemaTask(string)
Declaration
public DropSchemaTask(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
string | schemaName |
Properties
ON
Declaration
public override ObjectNameDescriptor ON { get; }
Property Value
Type | Description |
---|---|
ObjectNameDescriptor |
Overrides
Methods
Drop(IConnectionManager, string)
Drops a schema. For MySql, use the DropDatabase task instead.
Declaration
public static void Drop(IConnectionManager connectionManager, string schemaName)
Parameters
Type | Name | Description |
---|---|---|
IConnectionManager | connectionManager | The connection manager of the database you want to connect |
string | schemaName | Name of the schema to drop |
Drop(string)
Drops a schema. For MySql, use the DropDatabase task instead.
Declaration
public static void Drop(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
string | schemaName | Name of the schema to drop |
DropIfExists(IConnectionManager, string)
Drops a schema if the schema exists. For MySql, use the DropDatabase task instead.
Declaration
public static void DropIfExists(IConnectionManager connectionManager, string schemaName)
Parameters
Type | Name | Description |
---|---|---|
IConnectionManager | connectionManager | The connection manager of the database you want to connect |
string | schemaName | Name of the schema to drop |
DropIfExists(string)
Drops a schema if the schema exists. For MySql, use the DropDatabase task instead.
Declaration
public static void DropIfExists(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
string | schemaName | Name of the schema to drop |