SonnetDB 2.2.0

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

SonnetDB

SonnetDB NuGet 包提供 SonnetDB 的 ADO.NET 访问层。源码项目、程序集和命名空间仍为 SonnetDB.Data,统一支持本地嵌入式和远程 SonnetDB 连接。

安装

dotnet add package SonnetDB --version 0.1.0

本地嵌入式连接

using SonnetDB.Data;

using var connection = new SndbConnection("Data Source=./demo-data");
connection.Open();

using var command = connection.CreateCommand();
command.CommandText = "SELECT count(*) FROM cpu";

var count = (long)(command.ExecuteScalar() ?? 0L);
Console.WriteLine(count);

远程服务器连接

using SonnetDB.Data;

using var connection = new SndbConnection(
    "Data Source=sonnetdb+http://127.0.0.1:5080/metrics;Token=sonnetdb-admin-token");
connection.Open();

using var command = connection.CreateCommand();
command.CommandText = "SHOW DATABASES";

using var reader = command.ExecuteReader();
while (reader.Read())
{
    Console.WriteLine(reader.GetString(0));
}

发布包和默认示例配置见仓库根目录 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 (8)

Showing the top 5 NuGet packages that depend on SonnetDB:

Package Downloads
mooSQL.Ext.Core

一个纯粹、高可用、自由的面向数据库的连接库

mooSQL.Ext

一个纯粹、高可用、自由的面向数据库的连接库

SonnetDB.EntityFrameworkCore

SonnetDB 的 Entity Framework Core 关系型 Provider,提供 UseSonnetDB、SQL 生成、类型映射、迁移 SQL 和基础查询翻译。

SonnetDB.Caching

SonnetDB KV-backed EasyCaching and IDistributedCache providers.

SonnetDB.Caching.EasyCaching

SonnetDB KV-backed EasyCaching provider.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on SonnetDB:

Repository Stars
IoTSharp/IoTSharp
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
IoTSharp/SonnetDB
SonnetDB is a multi-model database for industrial IoT, edge applications, and AI-powered data workloads
Version Downloads Last Updated
5.1.1 131 11/15/2026
5.0.0 288 11/4/2026
4.5.0-preview.ef266.5 259 10/13/2026
4.0.0 535 9/27/2026
3.1.0 504 8/24/2026
3.0.1 268 7/8/2026
3.0.0 173 7/7/2026
2.5.0 325 6/26/2026
2.2.0 162 6/16/2026
2.1.1 217 6/15/2026
2.1.0 151 6/14/2026
2.0.0 161 6/14/2026
1.2.0 210 5/8/2026
1.1.0 149 5/6/2026
1.0.0 412 4/26/2026
0.2.1 144 5/3/2026
0.2.0 139 5/3/2026
0.1.0 139 5/3/2026