项目重命名
This commit is contained in:
25
MesETL.App/Options/DatabaseOutputOptions.cs
Normal file
25
MesETL.App/Options/DatabaseOutputOptions.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
namespace ConsoleApp2.Options;
|
||||
|
||||
public class DatabaseOutputOptions
|
||||
{
|
||||
public string? ConnectionString { get; set; }
|
||||
|
||||
public int MaxAllowedPacket { get; set; } = 64 * 1024 * 1024;
|
||||
|
||||
public int FlushCount { get; set; } = 10000;
|
||||
|
||||
public int MaxDatabaseOutputTask { get; set; } = 4;
|
||||
|
||||
public bool TreatJsonAsHex { get; set; } = true;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 配置导入数据的特殊列
|
||||
/// </summary>
|
||||
public Dictionary<string, ColumnType> ColumnTypeConfig { get; set; } = new(); // "table.column" -> type
|
||||
|
||||
public ColumnType GetColumnType(string table, string column)
|
||||
{
|
||||
return ColumnTypeConfig.GetValueOrDefault($"{table}.{column}", ColumnType.UnDefine);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user