AddNamespace
Method
func (SurrealDbServerResource) AddNamespace( name string, options ...*AddNamespaceOptions,) SurrealDbNamespaceResourceSignature
method
AddNamespace builderAdds a SurrealDB namespace resource to the application model
AddNamespace( name string, options ...*AddNamespaceOptions,) SurrealDbNamespaceResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.options...*AddNamespaceOptions Optional settings, described under Options.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.Returns
SurrealDbNamespaceResource A reference to the I.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: