Skip to content
DocsTry Aspire
DocsTry

PostgresDatabaseResource.withCreationScript

Method
📦 Aspire.Hosting.PostgreSQL v13.4.0
interface PostgresDatabaseResource {
// ... omitted for brevity
withCreationScript(script: string): PostgresDatabaseResource;
}

Signature

methodwithCreationScriptbuilder
Defines the SQL script used to create the database.
withCreationScript(script: string): PostgresDatabaseResource
scriptstring
PostgresDatabaseResource

Defined on

This method is defined on the following type: