Skip to content
Docs Try Aspire

withCreationScript

Function
📦 Aspire.Hosting.Azure.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

Applies to

This function is an extension method on the following types: