Skip to content
Docs Try Aspire

MySqlDatabaseResource

Handle TypeScript
📦 Aspire.Hosting.MySql v13.2.0-preview.1.26159.1
interface MySqlDatabaseResource
extends IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]],
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly databaseName: string;
readonly jdbcConnectionString: ReferenceExpression;
readonly name: string;
readonly parent: MySqlServerResource;
readonly uriExpression: ReferenceExpression;
withCreationScript(script: string): MySqlDatabaseResource;
}

Properties

property connectionStringExpression ReferenceExpression get
Gets the ConnectionStringExpression property
property databaseName string get
Gets the DatabaseName property
property jdbcConnectionString ReferenceExpression get
Gets the JdbcConnectionString property
property name string get
Gets the Name property
property parent MySqlServerResource get
Gets the Parent property
property uriExpression ReferenceExpression get
Gets the UriExpression property

Methods

method withCreationScript builder
Defines the SQL script for database creation
withCreationScript(script: string): MySqlDatabaseResource
script string
MySqlDatabaseResource