Share via


MySqlBuilderExtensions Class

Definition

Provides extension methods for adding MySQL resources to an IDistributedApplicationBuilder.

public static class MySqlBuilderExtensions
type MySqlBuilderExtensions = class
Public Module MySqlBuilderExtensions
Inheritance
MySqlBuilderExtensions

Methods

AddDatabase(IResourceBuilder<MySqlServerResource>, String, String)

Adds a MySQL database to the application model.

AddMySql(IDistributedApplicationBuilder, String, IResourceBuilder<ParameterResource>, Nullable<Int32>)

Adds a MySQL server resource to the application model. For local development a container is used.

WithDataBindMount(IResourceBuilder<MySqlServerResource>, String, Boolean)

Adds a bind mount for the data folder to a MySql container resource.

WithDataVolume(IResourceBuilder<MySqlServerResource>, String, Boolean)

Adds a named volume for the data folder to a MySql container resource.

WithHostPort(IResourceBuilder<PhpMyAdminContainerResource>, Nullable<Int32>)

Configures the host port that the PGAdmin resource is exposed on instead of using randomly assigned port.

WithInitBindMount(IResourceBuilder<MySqlServerResource>, String, Boolean)

Adds a bind mount for the init folder to a MySql container resource.

WithPhpMyAdmin<T>(IResourceBuilder<T>, Action<IResourceBuilder<PhpMyAdminContainerResource>>, String)

Adds a phpMyAdmin administration and development platform for MySql to the application model.

Applies to