Title here
Summary here
Truncates a table.
public sealed class TruncateTableTask : ControlFlowTask, ILoggableTask
TruncateTableTask.Truncate("demo.table1");
public TruncateTableTask()
public TruncateTableTask(string tableName)
Type | Name | Description |
---|---|---|
string | tableName | Sets the TableName |
Sql code that is used when the task is executed.
public string Sql { get; }
Type | Description |
---|---|
string |
The formatted table table name
public ObjectNameDescriptor TN { get; }
Type | Description |
---|---|
ObjectNameDescriptor |
Name of the table that should be truncated
public string TableName { get; set; }
Type | Description |
---|---|
string |
Execute a table truncation
public static void Truncate(IConnectionManager connection, string tableName)
Type | Name | Description |
---|---|---|
IConnectionManager | connection | Database connection manager to connect with the database |
string | tableName | Table name that should be truncated |
Execute a table truncation
public static void Truncate(string tableName)
Type | Name | Description |
---|---|---|
string | tableName | Table that should be truncated |
public static void TruncateAsync(IConnectionManager connection, string tableName)
Type | Name | Description |
---|---|---|
IConnectionManager | connection | |
string | tableName |