CH.Toolkit.Data
0.0.1-preview.3
This is a prerelease version of CH.Toolkit.Data.
dotnet add package CH.Toolkit.Data --version 0.0.1-preview.3
NuGet\Install-Package CH.Toolkit.Data -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.Data" 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.Data" Version="0.0.1-preview.3" />
<PackageReference Include="CH.Toolkit.Data" />
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.Data --version 0.0.1-preview.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CH.Toolkit.Data, 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.Data@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.Data&version=0.0.1-preview.3&prerelease
#tool nuget:?package=CH.Toolkit.Data&version=0.0.1-preview.3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CH.Toolkit.Data
Data access layer providing a connection-scoped context for querying and writing data to ClickHouse.
Key Types
ClickHouseContext-- main entry point; manages connections and provides typed query/insert operationsClickHouseContextOptions-- configuration record with connection string, database, naming convention, and batch sizeClickHouseSet<T>-- typed reference to a table; supportsAsQueryable(),ToListAsync(), andInsertAsync()ClickHouseQueryExecutionExtensions-- extension methods:ToListAsync(),FirstOrDefaultAsync(),CountAsync()onIClickHouseQueryable<T>
Dependencies
CH.Toolkit.QueryCH.Toolkit.TypesClickHouse.Driver(ADO.NET driver)
Usage
using CH.Toolkit.Data;
await using var ctx = new ClickHouseContext(new ClickHouseContextOptions
{
ConnectionString = "Host=localhost;Port=9000",
Database = "analytics"
});
// Typed set with LINQ-style queries
var events = ctx.Set<Event>();
var recent = await events.AsQueryable()
.Where(e => e.Timestamp > DateTime.UtcNow.AddDays(-7))
.ToListAsync(ctx);
// Bulk insert
await events.InsertAsync(newEvents);
// Raw SQL
var results = await ctx.QueryAsync<Event>("SELECT * FROM analytics.event");
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CH.Toolkit.Query (>= 0.0.1-preview.3)
- CH.Toolkit.Types (>= 0.0.1-preview.3)
- ClickHouse.Driver (>= 1.0.0)
-
net8.0
- CH.Toolkit.Query (>= 0.0.1-preview.3)
- CH.Toolkit.Types (>= 0.0.1-preview.3)
- ClickHouse.Driver (>= 1.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on CH.Toolkit.Data:
| Package | Downloads |
|---|---|
|
CH.Toolkit.DependencyInjection
ASP.NET Core dependency injection extensions for CH.Toolkit. Register MigrationEngine and optionally auto-apply migrations on startup. |
|
|
CH.Toolkit
ClickHouse schema modeling, migrations, and query building for .NET. Meta-package that includes Types, Sql, Schema, Modeling, Query, Introspection, and Migrations. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.1-preview.3 | 52 | 2/23/2026 |
| 0.0.1-preview.2 | 47 | 2/23/2026 |
| 0.0.1-preview.1 | 50 | 2/23/2026 |