SonnetDB.Core 2.5.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SonnetDB.Core --version 2.5.0
                    
NuGet\Install-Package SonnetDB.Core -Version 2.5.0
                    
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="SonnetDB.Core" Version="2.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SonnetDB.Core" Version="2.5.0" />
                    
Directory.Packages.props
<PackageReference Include="SonnetDB.Core" />
                    
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 SonnetDB.Core --version 2.5.0
                    
#r "nuget: SonnetDB.Core, 2.5.0"
                    
#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 SonnetDB.Core@2.5.0
                    
#: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=SonnetDB.Core&version=2.5.0
                    
Install as a Cake Addin
#tool nuget:?package=SonnetDB.Core&version=2.5.0
                    
Install as a Cake Tool

SonnetDB.Core

SonnetDB.Core 是 SonnetDB 的核心引擎包,适合嵌入式本地时序存储场景。

安装

dotnet add package SonnetDB.Core

最小示例

using SonnetDB.Engine;
using SonnetDB.Sql.Execution;

var root = Path.Combine(AppContext.BaseDirectory, "demo-data");

using var db = Tsdb.Open(new TsdbOptions
{
    RootDirectory = root,
});

SqlExecutor.Execute(db, """
    CREATE MEASUREMENT cpu (
        host TAG,
        usage FIELD FLOAT
    )
""");

SqlExecutor.Execute(db, """
    INSERT INTO cpu(host, usage, time)
    VALUES ('server-1', 63.2, 1776477601000)
""");

var result = (SelectExecutionResult)SqlExecutor.Execute(
    db,
    "SELECT time, usage FROM cpu WHERE host = 'server-1'")!;

foreach (var row in result.Rows)
{
    Console.WriteLine($"{row[0]} {row[1]}");
}

更多发布包、CLI 与服务端说明见仓库根目录 docs/releases/。

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
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 SonnetDB.Core:

Package Downloads
SonnetDB

SonnetDB 的 ADO.NET 提供程序,统一支持本地嵌入式连接与远程 SonnetDB 连接。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.1.1 317 11/15/2026
5.0.0 839 11/4/2026
4.5.0-preview.ef266.5 994 10/13/2026
4.0.0 3,584 9/27/2026
3.1.0 1,732 8/24/2026
3.0.1 2,894 7/8/2026
3.0.0 185 7/7/2026
2.5.0 352 6/26/2026
2.2.0 183 6/16/2026
2.1.1 221 6/15/2026
2.1.0 166 6/14/2026
2.0.0 179 6/14/2026
1.2.0 213 5/8/2026
1.1.0 153 5/6/2026
1.0.0 421 4/26/2026
0.2.1 160 5/3/2026
0.2.0 155 5/3/2026
0.1.0 143 5/3/2026