![]() |
VOOZH | about |
dotnet add package DuckDB.NET.Bindings.Full --version 1.5.3
NuGet\Install-Package DuckDB.NET.Bindings.Full -Version 1.5.3
<PackageReference Include="DuckDB.NET.Bindings.Full" Version="1.5.3" />
<PackageVersion Include="DuckDB.NET.Bindings.Full" Version="1.5.3" />Directory.Packages.props
<PackageReference Include="DuckDB.NET.Bindings.Full" />Project file
paket add DuckDB.NET.Bindings.Full --version 1.5.3
#r "nuget: DuckDB.NET.Bindings.Full, 1.5.3"
#:package DuckDB.NET.Bindings.Full@1.5.3
#addin nuget:?package=DuckDB.NET.Bindings.Full&version=1.5.3Install as a Cake Addin
#tool nuget:?package=DuckDB.NET.Bindings.Full&version=1.5.3Install as a Cake Tool
DuckDB bindings for C#
👁 GitHub Workflow Status
👁 Coveralls
👁 Ko-Fi
👁 Discord
👁 NuGet DuckDB.NET.Data
👁 NuGet DuckDB.NET.Bindings
👁 NuGet DuckDB.NET.Data.Full
👁 NuGet DuckDB.NET.Bindings.Full
dotnet add package DuckDB.NET.Data.Full
using (var duckDBConnection = new DuckDBConnection("Data Source=file.db"))
{
duckDBConnection.Open();
using var command = duckDBConnection.CreateCommand();
command.CommandText = "CREATE TABLE integers(foo INTEGER, bar INTEGER);";
var executeNonQuery = command.ExecuteNonQuery();
command.CommandText = "INSERT INTO integers VALUES (3, 4), (5, 6), (7, 8);";
executeNonQuery = command.ExecuteNonQuery();
command.CommandText = "Select count(*) from integers";
var executeScalar = command.ExecuteScalar();
command.CommandText = "SELECT foo, bar FROM integers";
var reader = command.ExecuteReader();
PrintQueryResults(reader);
}
private static void PrintQueryResults(DbDataReader queryResult)
{
for (var index = 0; index < queryResult.FieldCount; index++)
{
var column = queryResult.GetName(index);
Console.Write($"{column} ");
}
Console.WriteLine();
while (queryResult.Read())
{
for (int ordinal = 0; ordinal < queryResult.FieldCount; ordinal++)
{
var val = queryResult.GetInt32(ordinal);
Console.Write(val);
Console.Write(" ");
}
Console.WriteLine();
}
}
To connect to MotherDuck:
using var duckDBConnection = new DuckDBConnection("DataSource=md:{your_database}?motherduck_token=ey...");
If you want to build DuckDB extensions with C#, see Giorgi/DuckDB.ExtensionKit.
When debugging your project that uses DuckDB.NET library, you may get the following error: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. The error happens due to debugger interaction with the native memory. For a workaround check out Debugger Options mess up debugging session during Marshalling
Documentation is available at https://duckdb.net
If you encounter a bug with the library Create an Issue. Join the DuckDB dotnet channel for DuckDB.NET-related topics.
A big thanks to DuckDB Labs and AWS Open Source Software Fund for sponsoring the project!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on DuckDB.NET.Bindings.Full:
| Package | Downloads |
|---|---|
|
DuckDB.NET.Data.Full
DuckDB ADO.NET Provider for C#. |
|
|
SQLProvider.DuckDb
Type providers for DuckDB database access. |
|
|
DuckDbSharp
Bidirectional interoperability layer between DuckDB and .NET. |
|
|
TheTechIdea.Beep.DuckDBDataSourceCore
Package Description |
|
|
Apache.Arrow.Adbc.Testing
Package Description |
Showing the top 3 popular GitHub repositories that depend on DuckDB.NET.Bindings.Full:
| Repository | Stars |
|---|---|
|
apache/arrow-adbc
Database connectivity API standard and libraries for Apache Arrow
|
|
|
erikdarlingdata/PerformanceMonitor
Free, open-source SQL Server performance monitoring — 32 collectors, real-time alerts, graphical plan viewer, MCP server for AI analysis. Supports SQL 2016-2025, Azure SQL, AWS RDS.
|
|
|
RusselWebber/xlDuckDb
Use DuckDB within Excel with the xlDuckDb addin
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.3 | 32,693 | 5/24/2026 |
| 1.5.2 | 65,993 | 4/24/2026 |
| 1.5.0 | 105,175 | 3/10/2026 |
| 1.4.4 | 119,245 | 2/3/2026 |
| 1.4.4-alpha.2 | 3,537 | 12/19/2025 |
| 1.4.3 | 107,968 | 12/11/2025 |
| 1.4.1 | 171,147 | 10/13/2025 |
| 1.3.2 | 183,682 | 7/8/2025 |
| 1.3.0 | 147,776 | 6/3/2025 |
| 1.2.1 | 475,380 | 3/5/2025 |
| 1.2.1-alpha.8 | 847 | 2/19/2025 |
| 1.2.0 | 130,421 | 2/6/2025 |
| 1.1.3 | 394,140 | 11/7/2024 |
| 1.1.2.1 | 110,359 | 10/21/2024 |
| 1.1.2-alpha.5 | 410 | 10/10/2024 |
| 1.1.1 | 117,749 | 9/24/2024 |
| 1.1.0.1 | 183,217 | 9/9/2024 |
| 1.0.2 | 117,342 | 7/22/2024 |
- Updated to DuckDB v1.5.3