DuckDB.NET.Data 0.10.2

dotnet add package DuckDB.NET.Data --version 0.10.2
NuGet\Install-Package DuckDB.NET.Data -Version 0.10.2
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="DuckDB.NET.Data" Version="0.10.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DuckDB.NET.Data --version 0.10.2
#r "nuget: DuckDB.NET.Data, 0.10.2"
#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.
// Install DuckDB.NET.Data as a Cake Addin
#addin nuget:?package=DuckDB.NET.Data&version=0.10.2

// Install DuckDB.NET.Data as a Cake Tool
#tool nuget:?package=DuckDB.NET.Data&version=0.10.2

DuckDB.NET

DuckDB bindings for C#

GitHub Workflow Status Coveralls License Ko-Fi Discord

NuGet DuckDB.NET.Data NuGet DuckDB.NET.Bindings

NuGet DuckDB.NET.Data.Full NuGet DuckDB.NET.Bindings.Full

Project Icon

Usage

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();
  }
}

Documentation

Documentation is available at https://duckdb.net

Support

If you encounter a bug with the library Create an Issue. Join the [DuckDB .Net Channel for DuckDB.NET-related topics.

Contributors

Contributors

Sponsors

A big thanks to the AWS Open Source Software Fund for sponsoring the project!

AWS

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DuckDB.NET.Data:

Package Downloads
DuckDB.InteractiveExtension

DuckDB support for Polyglot Notebooks

Microsoft.SemanticKernel.Connectors.DuckDB The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

DuckDB connector for Semantic Kernel plugins and semantic memory

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on DuckDB.NET.Data:

Repository Stars
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
Version Downloads Last updated
0.10.2 88 4/21/2024
0.10.1 225 3/18/2024
0.9.2 107,694 11/14/2023
0.9.1 26,634 10/13/2023
0.9.0.3 5,319 10/4/2023
0.9.0 1,012 10/2/2023
0.8.1 94,917 7/8/2023
0.8.0 16,685 5/17/2023
0.7.1 356 3/4/2023
0.6.1 247 1/8/2023
0.4.0.10 1,174 9/3/2022
0.4.0.1 1,075 7/6/2022
0.4.0 436 6/27/2022
0.2.9.1 2,513 9/24/2021
0.2.9 345 9/15/2021
0.1.3 346 9/3/2021
0.1.2 389 4/12/2021
0.1.1 350 4/9/2021
0.1.0 599 11/12/2020

Update to DuckDB 0.10.1.
 
Added support for reading TimeTz types.

Added support for reading Array types.