LogtoResource.WithDatabase

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
type LogtoResource interface {
// ... omitted for brevity
WithDatabase(
postgres PostgresServerResource,
options ...*WithDatabaseOptions,
) LogtoResource
}

Signature

methodWithDatabasebuilder
Configures the Logto resource to connect to the specified PostgreSQL database.
WithDatabase(
postgres PostgresServerResource,
options ...*WithDatabaseOptions,
) LogtoResource
postgresPostgresServerResourceThe resource builder for the PostgreSQL server to connect to.
options...*WithDatabaseOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDatabaseOptions argument.

DatabaseName*stringThe PostgreSQL database name Logto should use.
LogtoResource

The resource builder for the configured Logto resource.

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

Defined on

This method is defined on the following type: