Class IfSchemaExistsTask
Checks if a schema exists. In MySql or MariaDb, use the IfDatabaseExistsTask instead.
Implements
Inherited Members
Namespace: ETLBox.ControlFlow
Assembly: ETLBox.dll
Syntax
public sealed class IfSchemaExistsTask : IfExistsTask, ILoggableTaskConstructors
IfSchemaExistsTask()
Declaration
public IfSchemaExistsTask()IfSchemaExistsTask(string)
Declaration
public IfSchemaExistsTask(string schemaName)Parameters
| Type | Name | Description |
|---|---|---|
| string | schemaName |
Properties
ON
Declaration
public override ObjectNameDescriptor ON { get; }Property Value
| Type | Description |
|---|---|
| ObjectNameDescriptor |
Overrides
Methods
IsExisting(IConnectionManager, string)
Ćhecks if the schema exists
Declaration
public static bool IsExisting(IConnectionManager connectionManager, string schemaName)Parameters
| Type | Name | Description |
|---|---|---|
| IConnectionManager | connectionManager | The connection manager of the database you want to connect |
| string | schemaName | The schema name that you want to check for existence |
Returns
| Type | Description |
|---|---|
| bool | True if the schema exists |
IsExisting(string)
Ćhecks if the schema exists
Declaration
public static bool IsExisting(string schemaName)Parameters
| Type | Name | Description |
|---|---|---|
| string | schemaName | The schema name that you want to check for existence |
Returns
| Type | Description |
|---|---|
| bool | True if the schema exists |