using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JiShe.CollectBus.IoTDBProvider { /// /// IoTDB数据源 /// public interface IIoTDBProvider { /// /// 插入数据 /// /// /// /// 构建表模型方式,1 根据实体《T》直接显示指定Tag,2根据实体《T》的名称指定表名 /// Task InsertAsync(T entity, int buildTabletMode) where T : IoTEntity; /// /// 批量插入数据 /// /// /// /// 构建表模型方式,1 根据实体《T》直接显示指定Tag,2根据实体《T》的名称指定表名 /// Task BatchInsertAsync(IEnumerable entities, int buildTabletMode) where T : IoTEntity; /// /// 删除数据 /// /// /// /// Task DeleteAsync(QueryOptions options) where T : IoTEntity; /// /// 查询数据 /// /// /// /// Task> QueryAsync(QueryOptions options) where T : IoTEntity, new(); } }