Class IfSchemaExistsTask
Checks if a schema exists. In MySql or MariaDb, use the IfDatabaseExistsTask instead.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.ControlFlow.Tasks
Assembly: ETLBox.dll
Syntax
public sealed class IfSchemaExistsTask : IfExistsTask, ILoggableTask
Constructors
IfSchemaExistsTask()
Declaration
public IfSchemaExistsTask()
IfSchemaExistsTask(String)
Declaration
public IfSchemaExistsTask(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
System.String | schemaName |
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 |
System.String | schemaName | The schema name that you want to check for existence |
Returns
Type | Description |
---|---|
System.Boolean | True if the schema exists |
IsExisting(String)
Ćhecks if the schema exists
Declaration
public static bool IsExisting(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
System.String | schemaName | The schema name that you want to check for existence |
Returns
Type | Description |
---|---|
System.Boolean | True if the schema exists |