CH.Toolkit.Types
0.0.1-preview.3
dotnet add package CH.Toolkit.Types --version 0.0.1-preview.3
NuGet\Install-Package CH.Toolkit.Types -Version 0.0.1-preview.3
<PackageReference Include="CH.Toolkit.Types" Version="0.0.1-preview.3" />
<PackageVersion Include="CH.Toolkit.Types" Version="0.0.1-preview.3" />
<PackageReference Include="CH.Toolkit.Types" />
paket add CH.Toolkit.Types --version 0.0.1-preview.3
#r "nuget: CH.Toolkit.Types, 0.0.1-preview.3"
#:package CH.Toolkit.Types@0.0.1-preview.3
#addin nuget:?package=CH.Toolkit.Types&version=0.0.1-preview.3&prerelease
#tool nuget:?package=CH.Toolkit.Types&version=0.0.1-preview.3&prerelease
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 implementToSql()- 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)") intoClickHouseTyperecordsClrTypeMapper-- 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 | Versions 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. |
-
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 |