SurrealDbServerResource.AddNamespace

Method
📦 CommunityToolkit.Aspire.Hosting.SurrealDb v13.6.1
type SurrealDbServerResource interface {
// ... omitted for brevity
AddNamespace(
name string,
options ...*AddNamespaceOptions,
) SurrealDbNamespaceResource
}

Signature

methodAddNamespacebuilder
Adds a SurrealDB namespace resource to the application model
AddNamespace(
name string,
options ...*AddNamespaceOptions,
) SurrealDbNamespaceResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
options...*AddNamespaceOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddNamespaceOptions argument.

NamespaceName*stringThe name of the namespace. If not provided, this defaults to the same value as name.
SurrealDbNamespaceResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: