Skip to content
DocsTry Aspire
DocsTry

withCreationScript

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

Signature

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

Applies to

This method applies to the following types: