withInitFiles

Method
📦 Aspire.Hosting.PostgreSQL v17.0.0
interface PostgresServerResource {
// ... 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

Applies to

This method applies to the following types: