Zongsoft.Data.DuckDB 0.3.0

dotnet add package Zongsoft.Data.DuckDB --version 0.3.0
                    
NuGet\Install-Package Zongsoft.Data.DuckDB -Version 0.3.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="Zongsoft.Data.DuckDB" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zongsoft.Data.DuckDB" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Zongsoft.Data.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 Zongsoft.Data.DuckDB --version 0.3.0
                    
#r "nuget: Zongsoft.Data.DuckDB, 0.3.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 Zongsoft.Data.DuckDB@0.3.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=Zongsoft.Data.DuckDB&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Zongsoft.Data.DuckDB&version=0.3.0
                    
Install as a Cake Tool

Zongsoft.Data.DuckDB Data Driver Plugin Library

License NuGet Version NuGet Downloads GitHub Stars

English | 简体中文


Overview

Zongsoft.Data.DuckDB is a low-level data engine driver in the Zongsoft open-source framework. It provides access to DuckDB and is transparent to upper-layer applications; deploy this plugin library to the application plugin directory to enable it.

Importer Implementation

The DuckDB importer uses two writing strategies:

  1. For regular data types, it uses the DuckDB.NET Appender for bulk loading. The standard Appender requires values to match all physical table columns exactly in count, order, and type, while the Zongsoft data engine supports importing any selected subset of fields. The importer therefore creates a connection-local temporary table containing only the selected fields, bulk-appends the input rows to it, and then executes one INSERT ... SELECT statement to write them to the target table. This preserves field mapping and target-table defaults; when IDataImportOptions.ConstraintIgnored is enabled, the final statement uses INSERT OR IGNORE.
  2. For database-specific custom types represented by DbType.Object, the concrete DuckDB type cannot be determined safely at runtime for the Appender. The importer falls back to parameterized row-by-row INSERT statements so that DuckDB.NET can perform its normal parameter binding and conversion.

Both strategies enlist in the ambient Zongsoft data transaction by default. They use an independent connection when IDataImportOptions.TransactionSuppressed is true, when no ambient transaction exists, or when the driver does not support transactions. An independent connection uses an internal transaction to keep the current import batch atomic and roll a failed batch back completely.

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 is compatible.  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
0.3.0 100 8/11/2026
0.2.0 107 7/30/2026
0.1.0 103 7/28/2026
0.0.1 118 4/10/2026