Skip to content
DocsTry Aspire
DocsTry

MySqlDatabaseResource.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

Defined on

This method is defined on the following type: