Apache IoTDB Client for C#

Clone this repo:
  1. 6f451bd Fix SessionPool client leak on reconnection and query failures, and preserve server error messages (#44) by CritasWang · 12 days ago main
  2. 54545a5 Support Client TLS (#43) by Haonan · 5 weeks ago
  3. 6745989 Fix format ci (#42) by CritasWang · 7 weeks ago
  4. f494ac2 ByteBuffer: replace LINQ reversals with Array.Reverse for compatibility (#41) by CritasWang · 7 weeks ago
  5. bbf0506 C# Client support V2 read interface (#37) by Zhan Lu · 6 months ago

English | 中文

Apache IoTDB Client for C#

E2E Tests License NuGet Version NuGet Downloads

Overview

This is the C# client of Apache IoTDB.

Apache IoTDB (Internet of Things Database) is a data management system for time series data, which can provide users specific services, such as, data collection, storage and analysis. Due to its light weight structure, high performance and usable features together with its seamless integration with the Hadoop and Spark ecology, IoTDB meets the requirements of massive dataset storage, high throughput data input, and complex data analysis in the industrial IoT field.

Apache IoTDB website: https://iotdb.apache.org Apache IoTDB Github: https://github.com/apache/iotdb

Installation

Install from NuGet Package

We have prepared a Nuget Package for C# users. Users can directly install the Apache IoTDB client using the .NET CLI. To install, simply run the following command in your command line:

dotnet add package Apache.IoTDB

For more details, visit the package on NuGet.

[!NOTE] The Apache.IoTDB package only supports versions greater than .net framework 4.6.1.

Prerequisites

.NET SDK Version >= 5.0 
.NET Framework >= 4.6.1

How to Use the Client (Quick Start)

Users can quickly get started by referring to the use cases under the Apache-IoTDB-Client-CSharp-UserCase directory. These use cases serve as a useful resource for getting familiar with the client's functionality and capabilities.

For those who wish to delve deeper into the client's usage and explore more advanced features, the samples directory contains additional code samples.

Developer environment requirements for iotdb-client-csharp

.NET SDK Version >= 5.0
.NET Framework >= 4.6.1
ApacheThrift >= 0.14.1
NLog >= 4.7.9

OS

  • Linux, MacOS or other Unix-like OS
  • Windows + Bash (WSL, cygwin, Git Bash)

Command Line Tools

  • dotnet CLI
  • Thrift

Code Formatting

This project uses dotnet format to enforce consistent code style based on the .editorconfig rules.

Check formatting locally

dotnet format --verify-no-changes

Auto-fix formatting issues

dotnet format

The CI pipeline will automatically check code formatting on all pull requests. Please ensure your code is properly formatted before submitting a PR.

Publish your own client on nuget.org

You can find out how to publish from this doc.