net-questdb-client 1.1.2

dotnet add package net-questdb-client --version 1.1.2
NuGet\Install-Package net-questdb-client -Version 1.1.2
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="net-questdb-client" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add net-questdb-client --version 1.1.2
#r "nuget: net-questdb-client, 1.1.2"
#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 net-questdb-client as a Cake Addin
#addin nuget:?package=net-questdb-client&version=1.1.2

// Install net-questdb-client as a Cake Tool
#tool nuget:?package=net-questdb-client&version=1.1.2

net-questdb-client

Dotnet QuestDB ILP TCP client

  • Basic usage
using var ls = await LineTcpSender.ConnectAsync("localhost", 9009, tlsMode: TlsMode.Disable);
ls.Table("metric_name")
    .Symbol("Symbol", "value")
    .Column("number", 10)
    .Column("double", 12.23)
    .Column("string", "born to shine")
    .At(new DateTime(2021, 11, 25, 0, 46, 26));
await ls.SendAsync();
  • Multi-line send
using var ls = new LineTcpSender("localhost", 9009, tlsMode: TlsMode.Disable);
for(int i = 0; i < 1E6; i++) 
{
    ls.Table("metric_name")
        .Column("counter", i)
        .AtNow();
}
ls.Send();
  • Authenticated
 using var ls = new LineTcpSender("localhost", 9009);
 await ls.Authenticate("admin", "NgdiOWDoQNUP18WOnb1xkkEG5TzPYMda5SiUOvT1K0U=");
 ls.Table("metric_name")
    .Column("counter", i)
    .AtNow();
await ls.SendAsync();        
  • Fixed IO Buffer size
 using var ls = new LineTcpSender("localhost", 9009, bufferOverflowHandling: BufferOverflowHandling.SendImmediately);
 await ls.Authenticate("admin", "NgdiOWDoQNUP18WOnb1xkkEG5TzPYMda5SiUOvT1K0U=");
 ls.Table("metric_name")
    .Column("counter", i)
    .AtNow();
await ls.SendAsync();        

Construction parameters

Name Default Description
host Host or IP address of QuestDB server
port QuestDB Port. Default ILP port is 9009
bufferSize 4096 Default send buffer size
bufferOverflowHandling Extend There are 2 modes: <br/> - Extend will grow input buffer until Send() or SendAsync() method called<br/> - SendImmediately will no extend the IO Buffer and automatically executes Send() immediatly when IO Buffer overflown
tslMode Enable There are 3 TSL modes:<br/>- Enable. TLS is enabled, sever certificate is checked<br/> - AllowAnyServerCertificate. TLS enabled, server certificate is not checked<br/>- Disable

Properties and methods

Name Description
AuthenticateAsync(string keyId, string privateKey) Authenticates with QuestDB certificates
Table(string name) Starts new line from table name
Symbol(string sybolName, string value) Symbol column value
Column(stirng columnName, string / long / double / DateTime value) Column name and value
At(DateTime / long timestamp) Designated timestamp for the line
AtNow() Finishes line leaving QuestDB sever to set the timestamp
Send() / SendAsync() Send IO Buffers to QuestDB
CancelLine() Cancels current line. Works only when bufferOverflowHandling set to Extend
TrimExcessBuffers() Trims empty buffers used to grow IO Buffer. Only useful when bufferOverflowHandling set to Extend
int WriteTimeout Value, in milliseconds, that determines how long the underlying stream will attempt to write before timing out
IsConnected Indicates if the connection to QuestDB open
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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.2 7,734 3/6/2023
1.1.0 24,226 6/14/2022
1.0.0 4,146 11/25/2021