Skip to content
Docs Try Aspire

withCreationScript

Function
📦 Aspire.Hosting.MySql v13.2.0-preview.1.26159.1
interface MySqlDatabaseResource {
// ... omitted for brevity
withCreationScript(script: string): MySqlDatabaseResource;
}

Signature

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

Applies to

This function is an extension method on the following types: