MySqlBuilderExtensions
Classstaticnet10.0
Provides extension methods for adding MySQL resources to an
Hosting.IDistributedApplicationBuilder. namespace Aspire.Hosting;
public static class MySqlBuilderExtensions{ // ...}11 members
Methods11
Section titled MethodsIResourceBuilder<MySqlDatabaseResource> Adds a MySQL database to the application model.
AddMySql(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>, int?)extensionats exportIResourceBuilder<MySqlServerResource> Adds a MySQL server resource to the application model. For local development a container is used.
IResourceBuilder<MySqlDatabaseResource> Defines the SQL script used to create the database.
IResourceBuilder<MySqlServerResource> Adds a bind mount for the data folder to a MySql container resource.
IResourceBuilder<MySqlServerResource> Adds a named volume for the data folder to a MySql container resource.
IResourceBuilder<PhpMyAdminContainerResource> Configures the host port that the PGAdmin resource is exposed on instead of using randomly assigned port.
IResourceBuilder<MySqlServerResource> Adds a bind mount for the init folder to a MySql container resource.
IResourceBuilder<MySqlServerResource> Copies init files into a MySql container resource.
WithPassword(IResourceBuilder<MySqlServerResource>, IResourceBuilder<ParameterResource>)extensionats exportIResourceBuilder<MySqlServerResource> Configures the password that the MySQL resource uses.
WithPhpMyAdmin(IResourceBuilder<T>, Action<IResourceBuilder<PhpMyAdminContainerResource>>, string?)extensionats exportIResourceBuilder<T> Adds a phpMyAdmin administration and development platform for MySql to the application model.
IResourceBuilder<MySqlServerResource> Adds a REPL command that opens an authenticated MySQL shell in the dashboard terminal dock.