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
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.ControlFlow.Tasks
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 |
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 |