WithCreationScript

Method
📦 CommunityToolkit.Aspire.Hosting.SurrealDb v13.6.1
func (SurrealDbNamespaceResource) 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().

Applies to

This method applies to the following types: