MySqlDatabaseResource.WithCreationScript

Method
📦 Aspire.Hosting.MySql v17.0.0
type MySqlDatabaseResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: