# ClickHouseDatabaseResource

- Module: [Aspire.Hosting.ClickHouse](/reference/api/typescript/aspire.hosting.clickhouse.md)
- Version: `13.5.3`
- Kind: `handle`
- Source: [GitHub](https://github.com/ClickHouse/ClickHouse.Aspire/tree/cabd9edc0899714407e6ad81dc4954eb01302af0)

A resource that represents a ClickHouse database. This is a child resource of a `ClickHouseServerResource`.

## Definition

```typescript
interface ClickHouseDatabaseResource
  extends IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithParent,
    ClickHouseServerResource]],
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  readonly databaseName: string;
  readonly parent: ClickHouseServerResource;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the connection string expression for the ClickHouse database.
- `databaseName`: `string` `get` -- Gets the database name.
- `parent`: [ClickHouseServerResource](/reference/api/typescript/aspire.hosting.clickhouse/clickhouseserverresource.md) `get` -- Gets the parent ClickHouse container resource.
