![]() |
VOOZH | about |
dotnet add package DuckDB.NET.Data.Full --version 1.4.1
NuGet\Install-Package DuckDB.NET.Data.Full -Version 1.4.1
<PackageReference Include="DuckDB.NET.Data.Full" Version="1.4.1" />
<PackageVersion Include="DuckDB.NET.Data.Full" Version="1.4.1" />Directory.Packages.props
<PackageReference Include="DuckDB.NET.Data.Full" />Project file
paket add DuckDB.NET.Data.Full --version 1.4.1
#r "nuget: DuckDB.NET.Data.Full, 1.4.1"
#:package DuckDB.NET.Data.Full@1.4.1
#addin nuget:?package=DuckDB.NET.Data.Full&version=1.4.1Install as a Cake Addin
#tool nuget:?package=DuckDB.NET.Data.Full&version=1.4.1Install 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...");
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 | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on DuckDB.NET.Data.Full:
| Package | Downloads |
|---|---|
|
Kurrent.Quack
Package Description |
|
|
UnifiedBlazor.Shared.DataAccess
UnifiedBlazor框架的DataAccess共享库 |
|
|
linq2db.LINQPad
Supported databases: IBM DB2 LUW/zOS/iSeries, Firebird, IBM Informix, Microsoft Access, Microsoft Sql Server (+Azure), Microsoft Sql Server Compact, MySql, MariaDB, Oracle, PostgreSQL, SQLite, SAP HANA, SAP/Sybase ASE, ClickHouse. |
|
|
Kurrent.Surge.DuckDB
Package Description |
|
|
ShiftSoftware.ADP.SyncAgent
Package Description |
Showing the top 11 popular GitHub repositories that depend on DuckDB.NET.Data.Full:
| Repository | Stars |
|---|---|
|
DapperLib/Dapper
Dapper - a simple object mapper for .Net
|
|
|
DotNetNext/SqlSugar
.Net aot ORM SqlServer ORM Mongodb ORM MySql 瀚高 Postgresql ORM DB2 Hana 高斯 Duckdb C# VB.NET Sqlite ORM Oracle ORM Mysql Orm 虚谷数据库 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET9 ORM .NET8 ORM ClickHouse ORM QuestDb ,TDengine ORM,OceanBase ORM,GaussDB ORM,Tidb ORM Object/Relational Mapping
|
|
|
dotnetcore/FreeSql
.NET aot orm, VB.NET/C# orm, Mysql/PostgreSQL/SqlServer/Oracle orm, Sqlite/Firebird/Clickhouse/DuckDB orm, 达梦/金仓/虚谷/翰高/高斯 orm, 神通 orm, 南大通用 orm, 国产 orm, TDengine orm, QuestDB orm, MsAccess orm.
|
|
|
linq2db/linq2db
Linq to database provider.
|
|
|
dotnet/interactive
.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
|
|
|
mukunku/ParquetViewer
Simple Windows desktop application for viewing & querying Apache Parquet files
|
|
|
brianluft/sqlnotebook
SQL Notebook — Casual data exploration in SQL
|
|
|
Hitmasu/OpenCNPJ
API pública de busca e consulta de CNPJs do Brasil
|
|
|
J-Tech-Japan/Sekiban
Sekiban - an Opinionated Event Sourcing and CQRS Framework using C#. It can store data into Azure Cosmos DB, AWS Dynamo DB or Postgres
|
|
|
ErrorLSC/Polars.NET
.NET DataFrame Engine, powered by Arrow and Polars
|
|
|
RusselWebber/xlDuckDb
Use DuckDB within Excel with the xlDuckDb addin
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.3 | 45,442 | 5/24/2026 |
| 1.5.2 | 64,576 | 4/24/2026 |
| 1.5.0 | 100,843 | 3/10/2026 |
| 1.4.4 | 105,847 | 2/3/2026 |
| 1.4.4-alpha.2 | 3,446 | 12/19/2025 |
| 1.4.3 | 89,964 | 12/11/2025 |
| 1.4.1 | 155,331 | 10/13/2025 |
| 1.3.2 | 179,888 | 7/8/2025 |
| 1.3.0 | 132,167 | 6/3/2025 |
| 1.2.1 | 465,728 | 3/5/2025 |
| 1.2.1-alpha.8 | 395 | 2/19/2025 |
| 1.2.0 | 103,396 | 2/6/2025 |
| 1.1.3 | 348,468 | 11/7/2024 |
| 1.1.2.1 | 83,028 | 10/21/2024 |
| 1.1.2-alpha.5 | 196 | 10/10/2024 |
| 1.1.1 | 96,493 | 9/24/2024 |
| 1.1.0.1 | 167,607 | 9/9/2024 |
| 1.0.2 | 89,404 | 7/22/2024 |
Improved support for parameter binding in parameterized statements.
Updated to DuckDB v1.4.1