# KurrentDBResource

- Module: [CommunityToolkit.Aspire.Hosting.KurrentDB](/reference/api/go/communitytoolkit.aspire.hosting.kurrentdb.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

A resource that represents a KurrentDB container.

## Definition

```go
type KurrentDBResource interface {
    ExpressionValue
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithConnectionString
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `ExpressionValue`
- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithConnectionString`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Properties

- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the connection string for the KurrentDB server.
- `Host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- `Port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint for the KurrentDB server.
- `UriExpression`: `*ReferenceExpression` `get` -- Gets the connection URI expression for the KurrentDB server.

## Methods

- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.kurrentdb/kurrentdbresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a KurrentDB container resource.
  ```go
  WithDataBindMount(source string) KurrentDBResource
  ```
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.kurrentdb/kurrentdbresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a KurrentDB container resource.
  ```go
  WithDataVolume(options ...*WithDataVolumeOptions) KurrentDBResource
  ```
