Skip to content
Docs Try Aspire
Docs Try

withCreationScript

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

Signature

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

Applies to

This method applies to the following types: