DotNetDiag.HealthChecks.DuckDb
10.0.10
dotnet add package DotNetDiag.HealthChecks.DuckDb --version 10.0.10
NuGet\Install-Package DotNetDiag.HealthChecks.DuckDb -Version 10.0.10
<PackageReference Include="DotNetDiag.HealthChecks.DuckDb" Version="10.0.10" />
<PackageVersion Include="DotNetDiag.HealthChecks.DuckDb" Version="10.0.10" />
<PackageReference Include="DotNetDiag.HealthChecks.DuckDb" />
paket add DotNetDiag.HealthChecks.DuckDb --version 10.0.10
#r "nuget: DotNetDiag.HealthChecks.DuckDb, 10.0.10"
#:package DotNetDiag.HealthChecks.DuckDb@10.0.10
#addin nuget:?package=DotNetDiag.HealthChecks.DuckDb&version=10.0.10
#tool nuget:?package=DotNetDiag.HealthChecks.DuckDb&version=10.0.10
DuckDB Health Check
This health check verifies that a DuckDB database can be opened and can execute a lightweight SQL query.
Defaults
By default, the package opens a DuckDB connection and executes SELECT 1;.
void Configure(IHealthChecksBuilder builder)
{
builder.AddDuckDb("Data Source=analytics.duckdb");
}
Use DuckDB's in-memory database when you only need to validate that the embedded DuckDB engine can start.
void Configure(IHealthChecksBuilder builder)
{
builder.AddDuckDb("Data Source=:memory:");
}
Custom query
Use a custom query when your application needs to validate a specific table, view, extension, or permission.
void Configure(IHealthChecksBuilder builder)
{
builder.AddDuckDb(
"Data Source=analytics.duckdb",
healthQuery: "SELECT COUNT(*) FROM healthcheck_marker");
}
Advanced options
Use DuckDbHealthCheckOptions when you need to customize the connection before it opens or build a custom health check result from the query result.
void Configure(IHealthChecksBuilder builder)
{
builder.AddDuckDb(new DuckDbHealthCheckOptions("Data Source=analytics.duckdb")
{
CommandText = "SELECT 1;",
HealthCheckResultBuilder = result => HealthCheckResult.Healthy($"DuckDB returned {result}")
});
}
Target frameworks
DuckDB's .NET provider targets .NET 8 and later. This health check package targets .NET 8 and .NET 10 and references DuckDB.NET.Data.Full so supported DuckDB native binaries are available with the package.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 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. |
-
net10.0
- DuckDB.NET.Data.Full (>= 1.5.3)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.9)
-
net8.0
- DuckDB.NET.Data.Full (>= 1.5.3)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.28)
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 |
|---|---|---|
| 10.0.10 | 39 | 7/7/2026 |