DataFlow.Snowflake 1.2.0

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

DataFlow.Snowflake

NuGet NuGet Downloads Tests Code Coverage LINQ Coverage SQL Injection .NET

LINQ-native Snowflake integration for DataFlow.NET.

📖 Full Documentation

Features

  • Native LINQ Translation - Write C# LINQ, execute Snowflake SQL
  • Streaming Results - Row-by-row processing with IAsyncEnumerable
  • Type Safety - Strong typing with automatic column mapping
  • SQL Injection Prevention - Parameterized queries by default
  • O(1) Memory Writes - Native streaming via PUT + COPY INTO
  • Cases Pattern - Multi-output conditional routing
  • Pull() Guardrail - Explicit boundary between server and client

Quick Start

using DataFlow.Snowflake;

// Connect to Snowflake
using var context = Snowflake.Connect(
    account: "xy12345.us-east-1",
    user: "myuser",
    password: "mypass",
    database: "MYDB",
    warehouse: "COMPUTE_WH"
);

// Query with LINQ (server-side SQL)
var orders = await context.Read.Table<Order>("orders")
    .Where(o => o.Amount > 1000)
    .OrderByDescending(o => o.OrderDate)
    .Take(100)
    .ToList();

// Client-side processing requires explicit Pull()
await context.Read.Table<Order>("orders")
    .Where(o => o.Status == "Active")    // Server-side SQL
    .Pull()                               // ← Switch to client
    .ForEach(o => Console.WriteLine(o))   // Client-side C#
    .Do();

Write Operations

Snowflake uses native IAsyncEnumerable streaming - O(1) memory, no config needed:

// Bulk insert (streams via PUT + COPY INTO)
await records.WriteTable(options, "ORDERS");
await records.WriteTable(options, "ORDERS").CreateIfMissing();
await records.WriteTable(options, "ORDERS").Overwrite();

// Upsert (merge) on key
await records.MergeTable(options, "ORDERS", o => o.OrderId);

// Update specific columns only
await records.MergeTable(options, "ORDERS", o => o.OrderId)
    .UpdateOnly("Status", "UpdatedAt");

Requirements

  • .NET 8.0+
  • DataFlow.Net 1.1.0+
  • DataFlow.Snowflake license for production

Support & Issues

📧 Contact: tecnet.paris@gmail.com
🐛 Report Issues: github.com/improveTheWorld/DataFlow.NET/issues

License

Free Developer Tier (No License Required)

Use DataFlow.Snowflake free for development and testing up to 1,000 rows per query:

Environment How It's Detected Limit
Debugger Attached Visual Studio, Rider, VS Code 1,000 rows
ASPNETCORE_ENVIRONMENT=Development ASP.NET apps 1,000 rows
DOTNET_ENVIRONMENT=Development Console apps 1,000 rows
DATAFLOW_ENVIRONMENT=Development Explicit opt-in 1,000 rows

Examples:

# Option 1: Set environment variable
$env:DATAFLOW_ENVIRONMENT="Development"  # PowerShell
export DATAFLOW_ENVIRONMENT=Development  # Bash

# Option 2: Launch with debugger attached (auto-detects)
dotnet run --launch-profile "Development"  # Uses launchSettings.json
# Or simply press F5 in Visual Studio/Rider

Production License

For production workloads (unlimited rows), obtain a license at:

Set your license key as an environment variable (auto-detected at runtime):

# PowerShell
$env:DATAFLOW_LICENSE_KEY="your-license-key"

# Bash/Linux/macOS
export DATAFLOW_LICENSE_KEY="your-license-key"

# Docker / Kubernetes
ENV DATAFLOW_LICENSE_KEY=your-license-key

Security: The license key is never in source code. Set it in your deployment environment (CI/CD secrets, Azure Key Vault, AWS Secrets Manager, etc.)

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 was computed.  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 was computed.  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
1.2.0 66 1/31/2026

v1.2.0: RSA licensing upgrade, BUG-018 (primitive projection) fixed, BUG-019 (Distinct chaining) fixed. See CHANGELOG.md for details.