IfSchemaExistsTask

Class IfSchemaExistsTask

Checks if a schema exists. In MySql or MariaDb, use the IfDatabaseExistsTask instead.

Implements
Namespace: ETLBox.ControlFlow
Assembly: ETLBox.dll
Syntax
    public sealed class IfSchemaExistsTask : IfExistsTask, ILoggableTask

Constructors

IfSchemaExistsTask()

Declaration
    public IfSchemaExistsTask()

IfSchemaExistsTask(string)

Declaration
    public IfSchemaExistsTask(string schemaName)
Parameters
TypeNameDescription
stringschemaName

Properties

ON

Declaration
    public override ObjectNameDescriptor ON { get; }
Property Value
TypeDescription
ObjectNameDescriptor
Overrides

Methods

IsExisting(IConnectionManager, string)

Ćhecks if the schema exists

Declaration
    public static bool IsExisting(IConnectionManager connectionManager, string schemaName)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager

The connection manager of the database you want to connect

stringschemaName

The schema name that you want to check for existence

Returns
TypeDescription
bool

True if the schema exists

IsExisting(string)

Ćhecks if the schema exists

Declaration
    public static bool IsExisting(string schemaName)
Parameters
TypeNameDescription
stringschemaName

The schema name that you want to check for existence

Returns
TypeDescription
bool

True if the schema exists

Implements