Share via


PostgresBuilderExtensions Class

Definition

Provides extension methods for adding PostgreSQL resources to an IDistributedApplicationBuilder.

public static class PostgresBuilderExtensions
type PostgresBuilderExtensions = class
Public Module PostgresBuilderExtensions
Inheritance
PostgresBuilderExtensions

Methods

AddDatabase(IResourceBuilder<PostgresServerResource>, String, String)

Adds a PostgreSQL database to the application model.

AddPostgres(IDistributedApplicationBuilder, String, IResourceBuilder<ParameterResource>, IResourceBuilder<ParameterResource>, Nullable<Int32>)

Adds a PostgreSQL resource to the application model. A container is used for local development.

WithDataBindMount(IResourceBuilder<PostgresServerResource>, String, Boolean)

Adds a bind mount for the data folder to a PostgreSQL container resource.

WithDataVolume(IResourceBuilder<PostgresServerResource>, String, Boolean)

Adds a named volume for the data folder to a PostgreSQL container resource.

WithHostPort(IResourceBuilder<PgAdminContainerResource>, Nullable<Int32>)

Configures the host port that the PGAdmin resource is exposed on instead of using randomly assigned port.

WithHostPort(IResourceBuilder<PgWebContainerResource>, Nullable<Int32>)

Configures the host port that the pgweb resource is exposed on instead of using randomly assigned port.

WithInitBindMount(IResourceBuilder<PostgresServerResource>, String, Boolean)

Adds a bind mount for the init folder to a PostgreSQL container resource.

WithPgAdmin<T>(IResourceBuilder<T>, Action<IResourceBuilder<PgAdminContainerResource>>, String)

Adds a pgAdmin 4 administration and development platform for PostgreSQL to the application model.

WithPgWeb(IResourceBuilder<PostgresServerResource>, Action<IResourceBuilder<PgWebContainerResource>>, String)

Adds an administration and development platform for PostgreSQL to the application model using pgweb.

Applies to