36 lines
870 B
C#
36 lines
870 B
C#
|
|
using Apache.IoTDB.DataStructure;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace JiShe.CollectBus.IoTDBProvider.Interface
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Session 连接池
|
|||
|
|
/// </summary>
|
|||
|
|
public interface IIoTDBSessionPool : IDisposable
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 打开连接池
|
|||
|
|
/// </summary>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task OpenAsync();
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 插入数据
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="tablet"></param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task<int> InsertAsync(Tablet tablet);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 查询数据
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="sql"></param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task<SessionDataSet> ExecuteQueryStatementAsync(string sql);
|
|||
|
|
}
|
|||
|
|
}
|