Skip to content
DocsTry Aspire
DocsTry

PostgresServerResource.addDatabase

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

Signature

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

Defined on

This method is defined on the following type: