Skip to content
DocsTry Aspire
DocsTry

SurrealDbDatabaseResource

Handle
📦 CommunityToolkit.Aspire.Hosting.SurrealDb v13.4.0
interface SurrealDbDatabaseResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
SurrealDbNamespaceResource]],
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly databaseName: string;
readonly parent: SurrealDbNamespaceResource;
withCreationScript(script: string): SurrealDbDatabaseResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the SurrealDB database.
propertydatabaseNamestringget
Gets the database name.
propertyparentSurrealDbNamespaceResourceget
Gets the parent SurrealDB namespace resource.

Methods

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