triaxis.DuckPg 0.4.1

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

triaxis.DuckPg

A stack of YAML, JSON and parquet files, served in your own process over the PostgreSQL v3 wire protocol and — on a second port — the TDS protocol Microsoft.Data.SqlClient speaks. Executed against DuckDB. Point Npgsql, SqlClient or EF Core at files you wrote a moment ago, and hold your client stack to the same wire it will meet in production.

Each table is published as a view over its layers, so it can come from a shared YAML seed, a tenant's JSON overrides and a parquet export at once, with the topmost layer holding a row winning. The top layer accepts writes, and what a client writes is an ordinary layer file another instance can read.

services.AddDuckPg(config =>
{
    config.Layers = ["./common", "./tenant"];
    config.Write = "./local";
    config.Tds = "127.0.0.1:0";     // port 0: the OS picks, and the lake says which
});

// after host.StartAsync
var lake = host.Services.GetRequiredService<Lake>();
using var connection = new SqlConnection(lake.SqlConnectionString());

The lake is an IHostedService, so a host owns it. For many lakes at once — one per tenant, one per exported database — AddDuckPgFactory hands out lakes a caller starts and disposes itself.

Bring a native DuckDB. This package carries none, because every platform's library together is 420 MB. Use the machine's (brew install duckdb, apt install libduckdb-dev, or DUCKDB_LIBRARY), add DuckDB.NET.Data.Full, or set installDuckDb to fetch the matching version once per machine.

triaxis.DuckPg.Cli is the same lake as a duckpg command.

Full documentation: https://github.com/triaxis-oss/triaxis.DuckPg

Product Compatible and additional computed target framework versions.
.NET 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.4.1 0 8/10/2026
0.4.0 8 8/10/2026
0.3.3 52 8/8/2026
0.3.2 51 8/7/2026
0.3.1 48 8/7/2026
0.3.0 48 8/7/2026
0.2.1 53 8/5/2026
0.2.0 46 8/5/2026