InfluxDB3.Client 1.3.0-dev.1694

This is a prerelease version of InfluxDB3.Client.
There is a newer version of this package available.
See the version list below for details.
dotnet add package InfluxDB3.Client --version 1.3.0-dev.1694
                    
NuGet\Install-Package InfluxDB3.Client -Version 1.3.0-dev.1694
                    
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="InfluxDB3.Client" Version="1.3.0-dev.1694" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="InfluxDB3.Client" Version="1.3.0-dev.1694" />
                    
Directory.Packages.props
<PackageReference Include="InfluxDB3.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add InfluxDB3.Client --version 1.3.0-dev.1694
                    
#r "nuget: InfluxDB3.Client, 1.3.0-dev.1694"
                    
#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.
#:package InfluxDB3.Client@1.3.0-dev.1694
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=InfluxDB3.Client&version=1.3.0-dev.1694&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=InfluxDB3.Client&version=1.3.0-dev.1694&prerelease
                    
Install as a Cake Tool

<p align="center"> <img src="net_logo.svg" alt=".NET Logo" width="150px"> </p> <p align="center"> <a href="https://www.nuget.org/packages/InfluxDB3.Client"> <img src="https://buildstats.info/nuget/InfluxDB3.Client" alt="NuGet Badge"> </a> <a href="https://influxcommunity.github.io/influxdb3-csharp/"> <img src="https://img.shields.io/badge/-docfx-blue?logo=csharp&logoColor=white" alt="docfx"> </a> <a href="https://github.com/InfluxCommunity/influxdb3-csharp/actions/workflows/codeql-analysis.yml"> <img src="https://github.com/InfluxCommunity/influxdb3-csharp/actions/workflows/codeql-analysis.yml/badge.svg?branch=main" alt="CodeQL analysis"> </a> <a href="https://github.com/InfluxCommunity/influxdb3-csharp/actions/workflows/linter.yml"> <img src="https://github.com/InfluxCommunity/influxdb3-csharp/actions/workflows/linter.yml/badge.svg" alt="Lint Code Base"> </a> <a href="https://dl.circleci.com/status-badge/redirect/gh/InfluxCommunity/influxdb3-csharp/tree/main"> <img src="https://dl.circleci.com/status-badge/img/gh/InfluxCommunity/influxdb3-csharp/tree/main.svg?style=svg" alt="CircleCI"> </a> <a href="https://codecov.io/gh/InfluxCommunity/influxdb3-csharp"> <img src="https://codecov.io/gh/InfluxCommunity/influxdb3-csharp/branch/main/graph/badge.svg" alt="Code Cov"/> </a> <a href="https://app.slack.com/huddle/TH8RGQX5Z/C02UDUPLQKA"> <img src="https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social" alt="Community Slack"> </a> </p>

InfluxDB 3 C# .NET Client

The C# .NET client that provides an easy and convenient way to interact with InfluxDB 3. This package supports both writing data to InfluxDB and querying data using the FlightSQL client, which allows you to execute SQL queries against InfluxDB IOx.

We offer this Getting Started: InfluxDB 3.0 C# Client Library video to learn more about the library.

Installation

Add the latest version of the client to your project:

dotnet add package InfluxDB3.Client

Usage

To start with the client, import the InfluxDB3.Client package and create a InfluxDBClient by constructor initializer:

using System.Threading.Tasks;
using InfluxDB3.Client;
using InfluxDB3.Client.Write;

namespace InfluxDB3.Examples.IOx;

public class IOxExample
{
    static async Task Main(string[] args)
    {
        const string host = "https://us-east-1-1.aws.cloud2.influxdata.com";
        const string token = "my-token";
        const string database = "my-database";

        using var client = new InfluxDBClient(host, token: token, database: database);
    }
}

to insert data, you can use code like this:

//
// Write by Point
//
var point = PointData.Measurement("temperature")
    .SetTag("location", "west")
    .SetField("value", 55.15)
    .SetTimestamp(DateTime.UtcNow.AddSeconds(-10));
await client.WritePointAsync(point: point);

//
// Write by LineProtocol
//
const string record = "temperature,location=north value=60.0";
await client.WriteRecordAsync(record: record);

to query your data, you can use code like this:

//
// Query by SQL
//
const string sql = "select time,location,value from temperature order by time desc limit 10";
Console.WriteLine("{0,-30}{1,-15}{2,-15}", "time", "location", "value");
await foreach (var row in client.Query(query: sql))
{
    Console.WriteLine("{0,-30}{1,-15}{2,-15}", row[0], row[1], row[2]);
}
Console.WriteLine();

//
// Query by parametrized SQL
//
const string sqlParams = "select time,location,value from temperature where location=$location order by time desc limit 10";
Console.WriteLine("Query by parametrized SQL");
Console.WriteLine("{0,-30}{1,-15}{2,-15}", "time", "location", "value");
await foreach (var row in client.Query(query: sqlParams, namedParameters: new Dictionary<string, object> { { "location", "west" } }))
{
    Console.WriteLine("{0,-30}{1,-15}{2,-15}", row[0], row[1], row[2]);
}
Console.WriteLine();

//
// Query by InfluxQL
//
const string influxQL =
    "select MEAN(value) from temperature group by time(1d) fill(none) order by time desc limit 10";
Console.WriteLine("{0,-30}{1,-15}", "time", "mean");
await foreach (var row in client.Query(query: influxQL, queryType: QueryType.InfluxQL))
{
    Console.WriteLine("{0,-30}{1,-15}", row[1], row[2]);
}

Feedback

If you need help, please use our Community Slack or Community Page.

New features and bugs can be reported on GitHub: https://github.com/InfluxCommunity/influxdb3-csharp

Contribution

If you would like to contribute code you can do through GitHub by forking the repository and sending a pull request into the main branch.

License

The InfluxDB 3 C# .NET Client is released under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on InfluxDB3.Client:

Package Downloads
Dijing.InfluxdbExt

influxdb2.0 extension tool

Zongsoft.Data.Influx

This is a data driver for InfluxDB of the Zongsoft data engine.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.0-dev.1992 169 9/19/2025
1.5.0-dev.1981 250 9/16/2025
1.5.0-dev.1960 205 9/15/2025
1.5.0-dev.1943 203 9/15/2025
1.5.0-dev.1938 204 9/15/2025
1.4.0 457 9/15/2025
1.4.0-dev.1932 206 9/15/2025
1.4.0-dev.1899 90 9/12/2025
1.4.0-dev.1815 122 9/10/2025
1.4.0-dev.1724 389 8/13/2025
1.4.0-dev.1720 131 8/12/2025
1.3.0 2,062 8/12/2025
1.3.0-dev.1694 141 8/4/2025
1.3.0-dev.1674 515 7/23/2025
1.3.0-dev.1664 151 7/3/2025
1.3.0-dev.1631 225 6/13/2025
1.3.0-dev.1621 241 6/13/2025
1.3.0-dev.1614 164 5/22/2025
1.3.0-dev.1610 127 5/22/2025
1.3.0-dev.1609 131 5/22/2025
1.2.0 11,860 5/22/2025
1.2.0-dev.1512 522 3/26/2025
1.1.0 4,407 3/26/2025
1.1.0-dev.1501 124 3/14/2025
1.1.0-dev.1441 122 1/28/2025
1.1.0-dev.1434 84 1/22/2025
1.0.0 7,482 1/22/2025
1.0.0-dev.1426 80 1/22/2025
1.0.0-dev.1419 75 1/22/2025
1.0.0-dev.1409 68 1/15/2025
1.0.0-dev.1399 89 1/7/2025
1.0.0-dev.1392 85 1/7/2025
1.0.0-dev.1386 85 1/7/2025
1.0.0-dev.1372 73 1/7/2025
1.0.0-dev.1356 82 1/7/2025
1.0.0-dev.1334 149 12/18/2024
0.9.0-dev.1320 93 12/16/2024
0.9.0-dev.1318 82 12/16/2024
0.9.0-dev.1288 101 12/9/2024
0.9.0-dev.1263 78 12/5/2024
0.9.0-dev.1250 83 11/26/2024
0.9.0-dev.1249 86 11/26/2024
0.9.0-dev.1236 92 11/18/2024
0.9.0-dev.1229 74 11/4/2024
0.9.0-dev.1222 77 10/22/2024
0.9.0-dev.1215 103 10/14/2024
0.9.0-dev.1208 91 10/7/2024
0.9.0-dev.1198 101 9/13/2024
0.8.0 10,067 9/13/2024
0.8.0-dev.1190 100 9/9/2024
0.8.0-dev.1183 95 9/9/2024
0.8.0-dev.1182 76 9/9/2024
0.8.0-dev.1166 87 9/3/2024
0.8.0-dev.1156 93 9/3/2024
0.8.0-dev.1149 96 9/3/2024
0.8.0-dev.1148 91 9/3/2024
0.8.0-dev.1103 95 8/12/2024
0.8.0-dev.1096 98 8/12/2024
0.7.0 6,222 8/12/2024
0.7.0-dev.1087 80 8/5/2024
0.7.0-dev.1068 83 8/5/2024
0.7.0-dev.1061 83 8/5/2024
0.7.0-dev.1054 81 8/5/2024
0.7.0-dev.1026 114 7/22/2024
0.7.0-dev.1019 100 7/15/2024
0.7.0-dev.1012 1,336 7/1/2024
0.7.0-dev.1008 90 7/1/2024
0.7.0-dev.1001 96 6/10/2024
0.7.0-dev.994 86 6/3/2024
0.7.0-dev.981 89 5/27/2024
0.7.0-dev.977 92 5/27/2024
0.7.0-dev.967 79 5/20/2024
0.7.0-dev.965 78 5/20/2024
0.7.0-dev.953 92 5/13/2024
0.7.0-dev.946 106 5/3/2024
0.7.0-dev.942 85 4/29/2024
0.7.0-dev.934 118 4/22/2024
0.7.0-dev.925 100 4/16/2024
0.6.0 15,650 4/16/2024
0.6.0-dev.917 98 4/8/2024
0.6.0-dev.910 101 4/3/2024
0.6.0-dev.891 89 3/25/2024
0.6.0-dev.890 76 3/25/2024
0.6.0-dev.877 95 3/18/2024
0.6.0-dev.869 96 3/18/2024
0.6.0-dev.859 83 3/11/2024
0.6.0-dev.858 77 3/11/2024
0.6.0-dev.845 105 3/1/2024
0.5.0 1,130 3/1/2024
0.5.0-dev.837 95 3/1/2024
0.5.0-dev.830 97 2/29/2024
0.5.0-dev.821 85 2/26/2024
0.5.0-dev.782 104 2/20/2024
0.5.0-dev.775 95 2/19/2024
0.5.0-dev.771 99 2/19/2024
0.5.0-dev.770 103 2/19/2024
0.5.0-dev.748 111 1/29/2024
0.5.0-dev.744 91 1/29/2024
0.5.0-dev.732 107 1/22/2024
0.5.0-dev.710 143 1/2/2024
0.5.0-dev.708 94 1/2/2024
0.5.0-dev.693 149 12/11/2023
0.5.0-dev.686 117 12/8/2023
0.4.0 13,088 12/8/2023
0.4.0-dev.678 114 12/8/2023
0.4.0-dev.674 115 12/4/2023
0.4.0-dev.673 110 12/4/2023
0.4.0-dev.660 112 12/4/2023
0.4.0-dev.650 138 11/13/2023
0.4.0-dev.649 104 11/13/2023
0.4.0-dev.648 98 11/13/2023
0.4.0-dev.629 100 11/6/2023
0.4.0-dev.627 91 11/6/2023
0.4.0-dev.615 115 10/31/2023
0.4.0-dev.608 126 10/17/2023
0.4.0-dev.601 106 10/11/2023
0.4.0-dev.597 137 10/2/2023
0.4.0-dev.581 121 10/2/2023
0.3.0 2,960 10/2/2023
0.3.0-dev.573 112 9/27/2023
0.3.0-dev.569 112 9/27/2023
0.3.0-dev.556 123 9/26/2023
0.3.0-dev.540 111 9/26/2023
0.3.0-dev.483 120 9/18/2023
0.3.0-dev.471 127 9/4/2023
0.3.0-dev.467 138 9/4/2023
0.3.0-dev.445 144 8/24/2023
0.3.0-dev.441 152 8/21/2023
0.3.0-dev.440 121 8/21/2023
0.3.0-dev.427 155 8/11/2023
0.2.0 3,564 8/11/2023
0.2.0-dev.419 132 8/7/2023
0.2.0-dev.418 126 8/7/2023
0.2.0-dev.405 139 8/7/2023
0.2.0-dev.360 164 7/26/2023
0.2.0-dev.353 141 7/25/2023
0.2.0-dev.337 155 7/17/2023
0.2.0-dev.327 150 7/10/2023
0.2.0-dev.314 153 6/29/2023
0.2.0-dev.310 154 6/29/2023
0.2.0-dev.306 130 6/28/2023
0.2.0-dev.299 145 6/27/2023
0.2.0-dev.295 143 6/27/2023
0.2.0-dev.285 144 6/23/2023
0.2.0-dev.278 165 6/13/2023
0.2.0-dev.271 148 6/12/2023
0.2.0-dev.264 159 6/9/2023
0.1.0 1,066 6/9/2023
0.1.0-dev.258 154 6/9/2023
0.1.0-dev.242 156 6/8/2023
0.1.0-dev.235 145 6/8/2023
0.1.0-dev.2 148 6/8/2023
0.1.0-dev.1 152 6/8/2023