# RavenDBDatabaseResource

- Module: [CommunityToolkit.Aspire.Hosting.RavenDB](/reference/api/typescript/communitytoolkit.aspire.hosting.ravendb.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

A resource that represents a RavenDB database. This is a child resource of a `RavenDBServerResource`.

## Definition

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

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the connection string expression for the RavenDB database, derived from the parent server's connection string.
- `databaseName`: `string` `get` -- Gets the name of the database.
- `parent`: [RavenDBServerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource.md) `get` -- Gets the parent RavenDB server resource associated with this database.
