PrimaryEndpoint EndpointReference getPrimaryEndpoint() EndpointReferenceAPI references are intentionally omitted from this search. To find API references, please search these dedicated API pages instead:
A resource that represents a SurrealDB container.
type SurrealDbServerResource interface { ExpressionValue IComputeResource Resource ResourceWithArgs ResourceWithConnectionString ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}ConnectionStringExpression *ReferenceExpression getConnectionStringExpression() *ReferenceExpressionHostEndpointReferenceExpression getHost() EndpointReferenceExpressionNamespacesmap[string]string getNamespaces() (map[string]string, error)PasswordParameter ParameterResource getPasswordParameter() ParameterResourcePortEndpointReferenceExpression getPort() EndpointReferenceExpressionPrimaryEndpoint EndpointReference getPrimaryEndpoint() EndpointReferenceUriExpression *ReferenceExpression getUriExpression() *ReferenceExpressionUserNameParameter ParameterResource getUserNameParameter() ParameterResourceAddNamespace( 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().
WithDataBindMount(source string) SurrealDbServerResourceParameters
sourcestringThe source directory on the host to mount into the container.Returns
SurrealDbServerResource The I.
Returns a handle; failures surface later via Err().
WithDataVolume(options ...*WithDataVolumeOptions) SurrealDbServerResourceParameters
options...*WithDataVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.
Name*stringThe name of the volume. Defaults to an auto-generated name based on the application and resource names.Returns
SurrealDbServerResource The I.
Returns a handle; failures surface later via Err().
WithInitFiles(source string) SurrealDbServerResourceParameters
sourcestringThe source file on the host to copy into the container.Returns
SurrealDbServerResource The I.
Returns a handle; failures surface later via Err().
WithLogLevel(logLevel string) SurrealDbServerResourceParameters
logLevel stringReturns
SurrealDbServerResource Returns a handle; failures surface later via Err().
WithSurrealDbOtlpExporter() SurrealDbServerResourceReturns
SurrealDbServerResource The I.
Returns a handle; failures surface later via Err().
WithSurrealist(options ...*WithSurrealistOptions) SurrealDbServerResourceParameters
options...*WithSurrealistOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithSurrealistOptions argument.
ContainerName *stringReturns
SurrealDbServerResource Returns a handle; failures surface later via Err().