ClickHouseServerResource

Handle
📦 Aspire.Hosting.ClickHouse v13.5.3
interface ClickHouseServerResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly databases: Dict<string,string>;
readonly host: EndpointReferenceExpression;
readonly passwordParameter: ParameterResource;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly userNameParameter: ParameterResource;
readonly userNameReference: ReferenceExpression;
addDatabase(
name: string,
databaseName?: string): ClickHouseDatabaseResource;
withDataBindMount(
source: string,
isReadOnly?: boolean): ClickHouseServerResource;
withDataVolume(
name?: string,
isReadOnly?: boolean): ClickHouseServerResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the ClickHouse server.
propertydatabasesDict<string,string>get
A dictionary where the key is the resource name and the value is the database name.
propertyhostEndpointReferenceExpressionget
Gets the host expression for this resource.
propertypasswordParameterParameterResourceget
Gets the parameter that contains the ClickHouse server password.
propertyportEndpointReferenceExpressionget
Gets the port expression for this resource.
propertyprimaryEndpointEndpointReferenceget
Gets the primary endpoint for the ClickHouse server.
propertyuserNameParameterParameterResourceget
Gets the parameter that contains the ClickHouse server username.
propertyuserNameReferenceReferenceExpressionget
Gets a reference to the user name for the ClickHouse server.

Methods

methodaddDatabasebuilder
Adds a ClickHouse database to the application model.
addDatabase(
name: string,
databaseName?: string): ClickHouseDatabaseResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
databaseNamestringoptionalThe name of the database. If not provided, this defaults to the same value as `name`.
ClickHouseDatabaseResource
methodwithDataBindMountbuilder
Adds a bind mount for the data folder to a ClickHouse container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): ClickHouseServerResource
sourcestringThe source directory on the host to mount into the container.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only mount.
ClickHouseServerResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to a ClickHouse container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): ClickHouseServerResource
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only volume.
ClickHouseServerResource