Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PostaResource.WithPostgresReference

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

Defined on

This method is defined on the following type: