WithCreationScript

Method
📦 CommunityToolkit.Aspire.Hosting.SurrealDb v13.6.1
func (SurrealDbDatabaseResource) WithCreationScript(script string) SurrealDbDatabaseResource

Signature

methodWithCreationScriptbuilder
Defines the SQL script used to create the database.
WithCreationScript(script string) SurrealDbDatabaseResource
scriptstringThe SQL script used to create the database.
SurrealDbDatabaseResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types: