Salvini.IoTDB 2.13.960.807

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.807                
NuGet\Install-Package Salvini.IoTDB -Version 2.13.960.807                
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.807" />                
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.807                
#r "nuget: Salvini.IoTDB, 2.13.960.807"                
#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.807

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

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.CreateInstance("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 520 11/10/2022 2.13.1110 is deprecated because it is no longer maintained and has critical bugs.
2.13.985 532 9/16/2022 2.13.985 is deprecated because it is no longer maintained and has critical bugs.
2.13.980 518 8/18/2022 2.13.980 is deprecated because it is no longer maintained and has critical bugs.
2.13.970.817 526 8/16/2022 2.13.970.817 is deprecated because it is no longer maintained and has critical bugs.
2.13.970 534 8/10/2022 2.13.970 is deprecated because it is no longer maintained and has critical bugs.
2.13.960.810 583 8/10/2022 2.13.960.810 is deprecated because it is no longer maintained and has critical bugs.
2.13.960.807 569 8/6/2022 2.13.960.807 is deprecated because it is no longer maintained and has critical bugs.
2.13.960.806 575 8/6/2022 2.13.960.806 is deprecated because it is no longer maintained and has critical bugs.
2.13.960 553 8/5/2022 2.13.960 is deprecated because it is no longer maintained and has critical bugs.
1.13.760.1 1,819 5/5/2022 1.13.760.1 is deprecated because it is no longer maintained and has critical bugs.
1.13.760 539 4/28/2022 1.13.760 is deprecated because it is no longer maintained and has critical bugs.
1.0.23.310 299 3/10/2023 1.0.23.310 is deprecated because it is no longer maintained and has critical bugs.
1.0.23.306 292 3/6/2023 1.0.23.306 is deprecated because it is no longer maintained and has critical bugs.
1.0.23.216 285 2/16/2023 1.0.23.216 is deprecated because it is no longer maintained and has critical bugs.