Aspire.Hosting.MySql
Official
📦 Aspire.Hosting.MySqlv13.6.010Functions
3Types
3 types and 14 members
Types
Functions
method
addDatabasebuilderAdds a MySQL database to the application model.
addDatabase(name: string, databaseName?: string): MySqlDatabaseResourcemethod
addMySqlbuilderAdds a MySQL server resource to the application model. For local development a container is used.
addMySql(name: string, password?: ParameterResource, port?: number): MySqlServerResourcemethod
withCreationScriptbuilderDefines the SQL script used to create the database.
withCreationScript(script: string): MySqlDatabaseResourcemethod
withDataBindMountbuilderAdds a bind mount for the data folder to a MySql container resource.
withDataBindMount(source: string, isReadOnly?: boolean): MySqlServerResourcemethod
withDataVolumebuilderAdds a named volume for the data folder to a MySql container resource.
withDataVolume(name?: string, isReadOnly?: boolean): MySqlServerResourcemethod
withHostPortbuilderConfigures the host port that the PGAdmin resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): PhpMyAdminContainerResourcemethod
withInitFilesbuilderCopies init files into a MySql container resource.
withInitFiles(source: string): MySqlServerResourcemethod
withPasswordbuilderConfigures the password that the MySQL resource uses.
withPassword(password: ParameterResource): MySqlServerResourcemethod
withPhpMyAdminbuilderAdds a phpMyAdmin administration and development platform for MySql to the application model.
withPhpMyAdmin(configureContainer?: (obj: PhpMyAdminContainerResource) => Promise<void>, containerName?: string): MySqlServerResourcemethod
withReplbuilderAdds a REPL command that opens an authenticated MySQL shell in the dashboard terminal dock.
withRepl(): MySqlServerResource