AuroraScienceHub.Framework.ClickHouse
10.0.5
Prefix Reserved
dotnet add package AuroraScienceHub.Framework.ClickHouse --version 10.0.5
NuGet\Install-Package AuroraScienceHub.Framework.ClickHouse -Version 10.0.5
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="AuroraScienceHub.Framework.ClickHouse" Version="10.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AuroraScienceHub.Framework.ClickHouse" Version="10.0.5" />
<PackageReference Include="AuroraScienceHub.Framework.ClickHouse" />
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 AuroraScienceHub.Framework.ClickHouse --version 10.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AuroraScienceHub.Framework.ClickHouse, 10.0.5"
#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 AuroraScienceHub.Framework.ClickHouse@10.0.5
#: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=AuroraScienceHub.Framework.ClickHouse&version=10.0.5
#tool nuget:?package=AuroraScienceHub.Framework.ClickHouse&version=10.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AuroraScienceHub.Framework.ClickHouse
ClickHouse database integration with connection management and migration support for OLAP workloads.
Overview
Provides integration with ClickHouse, a high-performance columnar database for analytical workloads, including connection management and migration runners.
Key Features
- ClickHouse Integration - Connection and query support
- Migration Support - Database schema migration management
- Configuration - Type-safe ClickHouse configuration
- OLAP Optimized - Designed for analytical workloads
Installation
dotnet add package AuroraScienceHub.Framework.ClickHouse
Usage
Setup
// Configuration
builder.Services.AddClickHouse();
// appsettings.json
{
"ClickHouse": {
"ClickHouse": "Host=localhost;Port=9000;Database=analytics;Username=default"
}
}
Query Example
public class AnalyticsService
{
private readonly IClickHouseConnection _connection;
public async Task<List<EventData>> GetEventsAsync(DateTime from, DateTime to)
{
var query = @"
SELECT event_date, event_type, user_id, COUNT(*) as count
FROM events
WHERE event_date BETWEEN @from AND @to
GROUP BY event_date, event_type, user_id
ORDER BY event_date DESC
";
using var command = _connection.CreateCommand();
command.CommandText = query;
command.Parameters.AddWithValue("from", from);
command.Parameters.AddWithValue("to", to);
var events = new List<EventData>();
using var reader = await command.ExecuteReaderAsync();
while (await reader.ReadAsync())
{
events.Add(new EventData
{
EventDate = reader.GetDateTime(0),
EventType = reader.GetString(1),
UserId = reader.GetInt32(2),
Count = reader.GetInt64(3)
});
}
return events;
}
}
Migrations
// Create migration
public class CreateEventsTableMigration
{
public static string Up => @"
CREATE TABLE IF NOT EXISTS events
(
event_date Date,
event_type String,
user_id UInt32
)
ENGINE = MergeTree()
PARTITION BY toYYYYMM(event_date)
ORDER BY (event_date, event_type)
";
}
// Run migrations
using var scope = app.Services.CreateScope();
var migrationRunner = scope.ServiceProvider.GetRequiredService<IClickHouseMigrationRunner>();
await migrationRunner.RunMigrationsAsync();
License
See LICENSE file in the repository root.
Related Packages
AuroraScienceHub.Framework.Diagnostics- Health checks for ClickHouse
| Product | Versions 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.
-
net10.0
- AuroraScienceHub.Framework.Utilities (>= 10.0.5)
- ClickHouse.Client (>= 7.14.0)
- Dapper (>= 2.1.66)
- Microsoft.Extensions.Configuration (>= 10.0.7)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Http (>= 10.0.7)
- Microsoft.Extensions.Logging (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.7)
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 |
|---|---|---|
| 10.0.5 | 105 | 4/23/2026 |
| 10.0.4 | 111 | 4/23/2026 |
| 10.0.3 | 127 | 2/11/2026 |
| 10.0.2 | 118 | 1/29/2026 |
| 10.0.1 | 221 | 12/25/2025 |
| 10.0.0 | 435 | 12/11/2025 |
| 9.0.7 | 435 | 11/20/2025 |
| 9.0.6 | 188 | 11/15/2025 |
| 9.0.5 | 150 | 11/8/2025 |
| 9.0.4 | 148 | 10/24/2025 |
| 9.0.3 | 221 | 10/15/2025 |
| 9.0.2 | 195 | 10/15/2025 |
| 9.0.1 | 199 | 10/14/2025 |
| 9.0.1-workflow-test-2.17 | 151 | 10/14/2025 |