Skip to content
DocsTry Aspire
DocsTry

MySqlDatabaseResource

Handle
📦 Aspire.Hosting.MySql v13.4.0
interface MySqlDatabaseResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
MySqlServerResource]],
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly databaseName: string;
readonly jdbcConnectionString: ReferenceExpression;
readonly parent: MySqlServerResource;
readonly uriExpression: ReferenceExpression;
withCreationScript(script: string): MySqlDatabaseResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the MySQL database.
propertydatabaseNamestringget
Gets the database name.
propertyjdbcConnectionStringReferenceExpressionget
Gets the JDBC connection string for the MySQL database.
propertyparentMySqlServerResourceget
Gets the parent MySQL container resource.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the MySQL database.

Methods

methodwithCreationScriptbuilder
Defines the SQL script used to create the database.
withCreationScript(script: string): MySqlDatabaseResource
scriptstring
MySqlDatabaseResource