Salvini.IoTDB 2.13.960

There is a newer version of this package available.
See the version list below for details.
dotnet add package Salvini.IoTDB --version 2.13.960
NuGet\Install-Package Salvini.IoTDB -Version 2.13.960
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Salvini.IoTDB" Version="2.13.960" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Salvini.IoTDB --version 2.13.960
#r "nuget: Salvini.IoTDB, 2.13.960"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Salvini.IoTDB as a Cake Addin
#addin nuget:?package=Salvini.IoTDB&version=2.13.960

// Install Salvini.IoTDB as a Cake Tool
#tool nuget:?package=Salvini.IoTDB&version=2.13.960

Salvini IoTDB

生成 rpc.thrift

https://github.com/apache/iotdb/blob/master/thrift/src/main/thrift/rpc.thrift

thrif -r -gen netstd rpc.thrift 

调用样例

//
using Salvini.IoTDB;

class Program
{
  static async Task Main(string[] args)
  {
    var session = new Session(password: "admin#123", host: "192.168.0.11");
    await session.OpenAsync();
    using var ds = await session.ExecuteQueryStatementAsync("select MW from root.lz limit 10");
    var matrix = ds.ReadAsMatrix();

    for (var i = 0; i < matrix.Length / matrix.Rank; i++)
    {
      for (var j = 0; j < matrix.Rank; j++)
      {
        var val = string.Empty;
        if (i == 0) val = (string)matrix[i, j];
        else if (j == 0) val = ((DateTime)matrix[i, j]).ToString("yyyy-MM-dd HH:mm:ss");
        else val = ((double)matrix[i, j]).ToString("f6").PadLeft(((string)matrix[0, j]).Length, (char)32);

        Console.Write($"{val}{(j != matrix.Rank - 1 ? '\t' : '\0')}");
      }
      Console.WriteLine();
    }
  }
}

Salvini TimeSeries Client

采用类似mongodb连接字符串格式,iotdb://root:admin#123@192.168.0.11:6667/database=lz

调用样例

using Salvini;

class Program
{
  static async Task Main(string[] args)
  {

    var client = TimeSeriesClient.Create("iotdb://root:admin#123@192.168.0.11:6667/database=lz");
    await client.OpenAsync();
    var archive = await client.ArchiveAsync("MW", new DateTime(2021, 03, 02), new DateTime(2021, 03, 02).AddHours(1), 8);
    foreach (var ln in archive)
    {
      Console.WriteLine(ln);
    }
    await client.CloseAsync();
  }
}


Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Salvini.IoTDB:

Package Downloads
Salvini.TimeSeries.Client

时序数据库访问封装,支持MongoDB和Apache/IoTDB

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.13.1110 478 11/10/2022
2.13.985 502 9/16/2022
2.13.980 485 8/18/2022
2.13.970.817 492 8/16/2022
2.13.970 512 8/10/2022
2.13.960.810 544 8/10/2022
2.13.960.807 524 8/6/2022
2.13.960.806 551 8/6/2022
2.13.960 515 8/5/2022
1.13.760.1 1,743 5/5/2022
1.13.760 507 4/28/2022
1.0.23.310 281 3/10/2023
1.0.23.306 264 3/6/2023
1.0.23.216 268 2/16/2023