Skip to content
Docs Try Aspire
Docs Try

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

property connectionStringExpression ReferenceExpression get
Gets the connection string expression for the MySQL database.
property databaseName string get
Gets the database name.
property jdbcConnectionString ReferenceExpression get
Gets the JDBC connection string for the MySQL database.
property parent MySqlServerResource get
Gets the parent MySQL container resource.
property uriExpression ReferenceExpression get
Gets the connection URI expression for the MySQL database.

Methods

method withCreationScript builder
Defines the SQL script used to create the database.
withCreationScript(script: string): MySqlDatabaseResource
script string
MySqlDatabaseResource