SurrealDbDatabaseResource.WithCreationScript

Method
📦 CommunityToolkit.Aspire.Hosting.SurrealDb v13.6.1
type SurrealDbDatabaseResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: