Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PostgresServerResource.WithInitFiles

Method
📦 Aspire.Hosting.PostgreSQL v17.0.0
type PostgresServerResource interface {
// ... omitted for brevity
WithInitFiles(source string) PostgresServerResource
}

Signature

methodWithInitFilesbuilder
Copies init files to a PostgreSQL container resource.
WithInitFiles(source string) PostgresServerResource
sourcestringThe source directory or files on the host to copy into the container.
PostgresServerResource

The resource builder.

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

Defined on

This method is defined on the following type: