Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithPostgresReference

Method
📦 CommunityToolkit.Aspire.Hosting.Posta v13.6.1
func (PostaResource) WithPostgresReference(database PostgresDatabaseResource) PostaResource

Signature

methodWithPostgresReferencebuilder
Configures the PostgreSQL database used by Posta.
WithPostgresReference(database PostgresDatabaseResource) PostaResource
databasePostgresDatabaseResourceThe PostgreSQL database resource used by Posta.
PostaResource

A reference to the IResourceBuilder for further resource configuration.

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

Applies to

This method applies to the following types: