Aspire.Hosting.MySql
Official
📦 Aspire.Hosting.MySql v13.2.0-preview.1.26159.1 9 Functions
3 Types
3 types and 26 members
Types
Functions
function
addDatabase builder Adds a MySQL database
addDatabase(name: string, databaseName?: string): MySqlDatabaseResource function
addMySql builder Adds a MySQL server resource
addMySql(name: string, password?: ParameterResource, port?: number): MySqlServerResource function
withCreationScript builder Defines the SQL script for database creation
withCreationScript(script: string): MySqlDatabaseResource function
withDataBindMount builder Adds a data bind mount for MySQL
withDataBindMount(source: string, isReadOnly?: boolean): MySqlServerResource function
withDataVolume builder Adds a data volume for MySQL
withDataVolume(name?: string, isReadOnly?: boolean): MySqlServerResource function
withHostPort builder Sets the host port for phpMyAdmin
withHostPort(port: number): PhpMyAdminContainerResource function
withInitFiles builder Copies init files to MySQL
withInitFiles(source: string): MySqlServerResource function
withPassword builder Configures the MySQL password
withPassword(password: ParameterResource): MySqlServerResource function
withPhpMyAdmin builder Adds phpMyAdmin management UI
withPhpMyAdmin(configureContainer?: (obj: PhpMyAdminContainerResource) => void, containerName?: string): MySqlServerResource