Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCreationScript

Method
📦 Aspire.Hosting.MySql v17.0.0
func (MySqlDatabaseResource) WithCreationScript(script string) MySqlDatabaseResource

Signature

methodWithCreationScriptbuilder
Defines the SQL script used to create the database.
WithCreationScript(script string) MySqlDatabaseResource
scriptstringThe SQL script used to create the database.
MySqlDatabaseResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: