SonnetDB.Core
1.2.0
dotnet add package SonnetDB.Core --version 1.2.0
NuGet\Install-Package SonnetDB.Core -Version 1.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.Core" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SonnetDB.Core" Version="1.2.0" />
<PackageReference Include="SonnetDB.Core" />
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 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SonnetDB.Core, 1.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.Core@1.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.Core&version=1.2.0
#tool nuget:?package=SonnetDB.Core&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SonnetDB.Core
SonnetDB.Core 是 SonnetDB 的核心引擎包,适合嵌入式本地时序存储场景。
安装
dotnet add package SonnetDB.Core --version 0.1.0
最小示例
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 | Versions 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.
-
net10.0
- System.IO.Hashing (>= 10.0.7)
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.