Skip to content
DocsTry Aspire
DocsTry

addDatabase

Method
📦 Aspire.Hosting.Azure.PostgreSQL v13.4.0
interface AzurePostgresFlexibleServerResource {
// ... omitted for brevity
addDatabase(
name: string,
databaseName?: string): AzurePostgresFlexibleServerDatabaseResource;
}

Signature

methodaddDatabasebuilder
Adds an Azure PostgreSQL database to the application model.
addDatabase(
name: string,
databaseName?: string): AzurePostgresFlexibleServerDatabaseResource
namestring
databaseNamestringoptional
AzurePostgresFlexibleServerDatabaseResource

Applies to

This method applies to the following types: