CH.Toolkit.Types 0.0.1-preview.3

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

CH.Toolkit.Types

Immutable record-based type system representing 40+ ClickHouse data types, with parsing and CLR mapping.

Key Types

  • ClickHouseType -- abstract base record; all types derive from this and implement ToSql()
  • Scalars: ChString, ChInt32, ChUInt64, ChFloat64, ChBool, ChDate, ChDateTime, ChDateTime64, ChDecimal, ChUuid, ChIPv4, ChIPv6
  • Compound: ChNullable, ChArray, ChMap, ChTuple, ChLowCardinality, ChNested
  • Enums: ChEnum8, ChEnum16
  • Geo: ChPoint, ChRing, ChPolygon, ChMultiPolygon
  • Special: ChJson, ChFixedString, ChSimpleAggregateFunction, ChAggregateFunction
  • ClickHouseTypeParser -- parses ClickHouse type strings (e.g. "Nullable(String)") into ClickHouseType records
  • ClrTypeMapper -- bidirectional mapping between .NET CLR types and ClickHouse types

Dependencies

None.

Usage

using CH.Toolkit.Types;

// Create types directly
var col = new ChNullable(new ChString());
Console.WriteLine(col.ToSql()); // "Nullable(String)"

// Parse from a ClickHouse type string
var parsed = ClickHouseTypeParser.Parse("Array(DateTime64(3, 'UTC'))");
// parsed is ChArray { Element = ChDateTime64 { Precision = 3, TimeZone = "UTC" } }

// Map from CLR type
var mapped = ClrTypeMapper.FromClr(typeof(int?));
// mapped is ChNullable { Inner = ChInt32 }

See the root README for full project documentation.

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 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.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on CH.Toolkit.Types:

Package Downloads
CH.Toolkit.Sql

SQL AST and ClickHouse SQL renderer. Provides a type-safe AST for generating ClickHouse-compatible DDL and DML statements.

CH.Toolkit.Query

LINQ query provider and fluent query builder for ClickHouse. Supports PREWHERE, FINAL, SAMPLE, LIMIT BY, CTEs, joins, and ClickHouse-specific functions.

CH.Toolkit.Schema

ClickHouse schema model and DDL compiler. Defines table, column, engine, materialized view, and dictionary schemas with compilation to SQL.

CH.Toolkit.Data

ClickHouse data context for executing queries and bulk inserts. Bridges CH.Toolkit.Query (SQL generation) with ClickHouse.Driver (ADO.NET execution).

CH.Toolkit.Introspection

Schema introspection for ClickHouse. Reads tables, columns, engines, indexes, projections, materialized views, and dictionaries from ClickHouse system tables.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.1-preview.3 62 2/23/2026
0.0.1-preview.2 47 2/23/2026
0.0.1-preview.1 57 2/23/2026