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
                    
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="DotNetDiag.HealthChecks.DuckDb" Version="10.0.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetDiag.HealthChecks.DuckDb" Version="10.0.10" />
                    
Directory.Packages.props
<PackageReference Include="DotNetDiag.HealthChecks.DuckDb" />
                    
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 DotNetDiag.HealthChecks.DuckDb --version 10.0.10
                    
#r "nuget: DotNetDiag.HealthChecks.DuckDb, 10.0.10"
                    
#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 DotNetDiag.HealthChecks.DuckDb@10.0.10
                    
#: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=DotNetDiag.HealthChecks.DuckDb&version=10.0.10
                    
Install as a Cake Addin
#tool nuget:?package=DotNetDiag.HealthChecks.DuckDb&version=10.0.10
                    
Install as a Cake Tool

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 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. 
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
10.0.10 39 7/7/2026