addNamespace
Method
interface SurrealDbServerResource { // ... omitted for brevity addNamespace( name: string, namespaceName?: string): SurrealDbNamespaceResource;}Signature
method
addNamespace builderAdds a SurrealDB namespace resource to the application model
addNamespace( name: string, namespaceName?: string): SurrealDbNamespaceResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.namespaceName stringoptionalThe name of the namespace. If not provided, this defaults to the same value as `name`.Returns
SurrealDbNamespaceResource Applies to
This method applies to the following types: