Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithInitFiles

Method
📦 Aspire.Hosting.PostgreSQL v17.0.0
func (PostgresServerResource) 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().

Applies to

This method applies to the following types: