addNamespace

Method
📦 CommunityToolkit.Aspire.Hosting.SurrealDb v13.6.1
interface SurrealDbServerResource {
// ... omitted for brevity
addNamespace(
name: string,
namespaceName?: string): SurrealDbNamespaceResource;
}

Signature

methodaddNamespacebuilder
Adds a SurrealDB namespace resource to the application model
addNamespace(
name: string,
namespaceName?: string): SurrealDbNamespaceResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
namespaceNamestringoptionalThe name of the namespace. If not provided, this defaults to the same value as `name`.
SurrealDbNamespaceResource

Applies to

This method applies to the following types: