DropSchemaTask

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
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
TypeNameDescription
stringschemaName

Properties

ON

Declaration
    public override ObjectNameDescriptor ON { get; }
Property Value
TypeDescription
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
TypeNameDescription
IConnectionManagerconnectionManager

The connection manager of the database you want to connect

stringschemaName

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
TypeNameDescription
stringschemaName

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
TypeNameDescription
IConnectionManagerconnectionManager

The connection manager of the database you want to connect

stringschemaName

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
TypeNameDescription
stringschemaName

Name of the schema to drop

Implements