# AzureKustoReadWriteDatabaseResource

- Module: [Aspire.Hosting.Azure.Kusto](/reference/api/go/aspire.hosting.azure.kusto.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents an Azure Kusto read-write database resource, which is a child resource of a `AzureKustoClusterResource`.

## Definition

```go
type AzureKustoReadWriteDatabaseResource interface {
    ExpressionValue
    Resource
    ResourceWithConnectionString
    ResourceWithParent
}
```

## Embeds

- `ExpressionValue`
- `Resource`
- `ResourceWithConnectionString`
- `ResourceWithParent`

## Properties

- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the connection string expression for the Kusto database.
- `DatabaseName`: `string` `get` -- Gets the database name.
- `Parent`: [`AzureKustoClusterResource`](/reference/api/go/aspire.hosting.azure.kusto/azurekustoclusterresource.md) `get` -- Gets the parent Kusto resource.
- `ResourceTypeDisplayName`: `string` `get` -- Gets the ResourceTypeDisplayName property

## Methods

- [GetDatabaseCreationScript](/reference/api/go/aspire.hosting.azure.kusto/azurekustoreadwritedatabaseresource/getdatabasecreationscript.md) -- `method` -- Gets the database creation script from the resource annotation if it exists. If not, creates the default database creation script.
  ```go
  GetDatabaseCreationScript() (string, error)
  ```
- [WithCreationScript](/reference/api/go/aspire.hosting.azure.kusto/azurekustoreadwritedatabaseresource/withcreationscript.md) -- `method` -- Defines the script used to create the database.
  ```go
  WithCreationScript(script string) AzureKustoReadWriteDatabaseResource
  ```
