ClickHouse.Hosting
1.1.0
dotnet add package ClickHouse.Hosting --version 1.1.0
NuGet\Install-Package ClickHouse.Hosting -Version 1.1.0
<PackageReference Include="ClickHouse.Hosting" Version="1.1.0" />
<PackageVersion Include="ClickHouse.Hosting" Version="1.1.0" />
<PackageReference Include="ClickHouse.Hosting" />
paket add ClickHouse.Hosting --version 1.1.0
#r "nuget: ClickHouse.Hosting, 1.1.0"
#:package ClickHouse.Hosting@1.1.0
#addin nuget:?package=ClickHouse.Hosting&version=1.1.0
#tool nuget:?package=ClickHouse.Hosting&version=1.1.0
ClickHouse.Hosting library
Provides extension methods and resource definitions for a .NET Aspire AppHost to configure a ClickHouse resource.
Getting started
Install the package
In your AppHost project, install the .NET Aspire ClickHouse Hosting library with NuGet:
dotnet add package ClickHouse.Hosting
Usage example
Then, in the Program.cs file of AppHost
, add a ClickHouse resource and consume the connection using the following methods:
var db = builder.AddClickHouse("clickhouse")
.AddDatabase("default");
var api = builder.AddProject<Projects.ClickHouse_DemoApi>("api")
.WithReference(db);
Optional Parameters
When using the AddClickHouse
method, you can specify the following optional parameters:
Parameter | Description | Default Value |
---|---|---|
userName |
Username for ClickHouse authentication | - |
password |
Password for ClickHouse authentication | - |
port |
Port number for ClickHouse container | 8123 |
imageTag |
Version tag of ClickHouse server image | "25.6" |
Feedback & contributing
Contributions are welcome! Whether you're fixing a bug, adding a new feature, or improving the documentation, please feel free to make a pull request.
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 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. |
-
net8.0
- Aspire.Hosting (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.