# AzureKustoReadWriteDatabaseResource

- Module: [Aspire.Hosting.Azure.Kusto](/reference/api/typescript/aspire.hosting.azure.kusto.md)
- Version: `13.2.0-preview.1.26170.3`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AzureKustoReadWriteDatabaseResource
  extends IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithParent,
    AzureKustoClusterResource]],
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  readonly databaseName: string;
  readonly name: string;
  readonly parent: AzureKustoClusterResource;
  getDatabaseCreationScript(): string;
  withCreationScript(script: string): AzureKustoReadWriteDatabaseResource;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the ConnectionStringExpression property
- `databaseName`: `string` `get` -- Gets the DatabaseName property
- `name`: `string` `get` -- Gets the Name property
- `parent`: [AzureKustoClusterResource](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoclusterresource.md) `get` -- Gets the Parent property

## Methods

- [getDatabaseCreationScript](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoreadwritedatabaseresource/getdatabasecreationscript.md) -- `method` -- Gets the KQL script used to create the database.
    ```typescript
  getDatabaseCreationScript(): string
  ```
- [withCreationScript](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoreadwritedatabaseresource/withcreationscript.md) -- `method` -- Defines the KQL script used to create the database
    ```typescript
  withCreationScript(script: string): AzureKustoReadWriteDatabaseResource
  ```
