MES-ETL/ConsoleApp2/appsettings.json
2024-02-01 13:41:59 +08:00

48 lines
1.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"Logging": {
"LogLevel": {
"Default": "Debug"
}
},
"Input":{
"InputDir": "D:\\Dump\\MockData", // Csv数据输入目录
"UseMock": true, // 使用模拟数据进行测试
"MockCountMultiplier": 0.5 // 模拟数据量级的乘数
},
"Transform":{
"StrictMode": true, // 设为true时如果数据转换发生错误立刻停止程序
"EnableFilter": false, // 启用数据过滤
"EnableReplacer": false, // 启用数据修改
"EnableReBuilder": false, // 启用数据重建
"CleanDate": "202301" // 当数据过滤开启时,删除这个时间之前的数据
},
"Output":{
"ConnectionString": "Server=127.0.0.1;Port=3306;UserId=root;Password=cfmes123456;", // 要分库,不用加'Database='了
"MaxAllowedPacket": 67108864,
"FlushCount": 10000, // 每次提交记录条数
"MaxDatabaseOutputTask" : 4, // 每个数据库最大提交任务数
"TreatJsonAsHex": false, // 将json列作为16进制格式输出(0x前缀)
"RestoreIndex": true // 在输出结束以后还原数据库的索引(调用RestoreIndex.sql)
},
"RedisCache": {
"Configuration": "192.168.1.246:6380",
"InstanceName" : "mes-etl:"
},
"TenantDb": // 分库配置
{
"TenantKey" : "CompanyID",
"DbList": {
/*
*
* (CompanyId < 1000) -> cferp_test_1
* (CompanyId < 2000) -> cferp_test_2
* (CompanyId < 2147483647) -> cferp_test_3
*/
"cferp_test_1": 1000,
"cferp_test_2": 2000,
"cferp_test_3": 2147483647
// "cferp_void_1": 2147483647
}
}
}