SurrealDbNamespaceResource.WithCreationScript

Method
📦 CommunityToolkit.Aspire.Hosting.SurrealDb v13.6.1
type SurrealDbNamespaceResource interface {
// ... omitted for brevity
WithCreationScript(script string) SurrealDbNamespaceResource
}

Signature

methodWithCreationScriptbuilder
Defines the SQL script used to create the namespace.
WithCreationScript(script string) SurrealDbNamespaceResource
scriptstringThe SQL script used to create the namespace.
SurrealDbNamespaceResource

A reference to the IResourceBuilder.

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

Defined on

This method is defined on the following type: