using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JiShe.CollectBus.IoTDBProvider { /// /// IoTDB数据源,数据库能同时存多个时序模型,但数据是完全隔离的,不能跨时序模型查询,通过连接字符串配置 /// public interface IIoTDBProvider { /// /// 切换 SessionPool /// /// 是否使用表模型 void SwitchSessionPool(bool useTableSession); /// /// 插入数据 /// /// /// /// Task InsertAsync(T entity) where T : IoTEntity; /// /// 批量插入数据 /// /// /// /// Task BatchInsertAsync(IEnumerable entities) where T : IoTEntity; /// /// 删除数据 /// /// /// /// Task DeleteAsync(QueryOptions options) where T : IoTEntity; /// /// 查询数据 /// /// /// /// Task> QueryAsync(QueryOptions options) where T : IoTEntity, new(); } }