Skip to content
Docs Try Aspire
Docs Try

withCreationScript

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

Signature

method withCreationScript builder
Defines the SQL script used to create the database.
withCreationScript(script: string): PostgresDatabaseResource
script string
PostgresDatabaseResource

Applies to

This method applies to the following types: