2025-04-17 20:28:50 +08:00
|
|
|
|
namespace JiShe.CollectBus.IoTDB.Options
|
2025-04-02 14:06:40 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// IOTDB配置
|
|
|
|
|
|
/// </summary>
|
2025-04-21 10:17:40 +08:00
|
|
|
|
public class IoTDbOptions
|
2025-04-02 14:06:40 +08:00
|
|
|
|
{
|
2025-04-03 16:46:26 +08:00
|
|
|
|
/// <summary>
|
2025-04-07 16:44:25 +08:00
|
|
|
|
/// 数据库名称,表模型才有,树模型为空
|
2025-04-03 16:46:26 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string DataBaseName { get; set; }
|
|
|
|
|
|
|
2025-04-02 14:06:40 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 集群列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public List<string> ClusterList { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用户名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string UserName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 密码
|
|
|
|
|
|
/// </summary>
|
2025-04-07 10:56:40 +08:00
|
|
|
|
public string Password { get; set; }
|
2025-04-02 14:06:40 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 连接池大小
|
|
|
|
|
|
/// </summary>
|
2025-04-07 10:56:40 +08:00
|
|
|
|
public int PoolSize { get; set; } = 2;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询时,每次查询的数据量,默认1024
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int FetchSize { get; set; } = 1024;
|
2025-04-03 16:46:26 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否开启调试模式,生产环境请关闭,因为底层的实现方式,可能会导致内存持续增长。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool OpenDebugMode { get; set;}
|
2025-04-07 16:44:25 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否使用表模型存储, 默认false,使用tree模型存储
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool UseTableSessionPoolByDefault { get; set; } = false;
|
2025-04-22 16:44:47 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 时区,默认为:"UTC+08:00"
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ZoneId { get; set; } = "UTC+08:00";
|
2025-04-02 14:06:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|