Skip to content
Docs Try Aspire
Docs Try

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

property connectionStringExpression ReferenceExpression get
Gets the connection string expression for the SurrealDB database.
property databaseName string get
Gets the database name.
property parent SurrealDbNamespaceResource get
Gets the parent SurrealDB namespace resource.

Methods

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