Skip to content
Docs Try Aspire

PostgresDatabaseResource.withCreationScript

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

Signature

method withCreationScript builder
Defines the SQL script for database creation
withCreationScript(script: string): PostgresDatabaseResource
script string
PostgresDatabaseResource

Defined on

This method is defined on the following type: