Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Aspire.Hosting.PostgreSQL

Official
📦 Aspire.Hosting.PostgreSQLv17.0.0
Import pathapphost/modules/aspire
15Functions
5Types

Handles

Functions

PostgresServerResource

methodAddDatabasebuilder
Adds a PostgreSQL database to the application model.
AddDatabase(name string, options ...*AddDatabaseOptions) PostgresDatabaseResource
methodWithDataBindMountbuilder
Adds a bind mount for the data folder to a PostgreSQL container resource.
WithDataBindMount(source string, options ...*WithDataBindMountOptions) PostgresServerResource
methodWithDataVolumebuilder
Adds a named volume for the data folder to a PostgreSQL container resource.
WithDataVolume(options ...*WithDataVolumeOptions) PostgresServerResource
methodWithHostPortbuilder
Configures the host port that the PostgreSQL resource is exposed on instead of using randomly assigned port.
WithHostPort(port *float64) PostgresServerResource
methodWithInitFilesbuilder
Copies init files to a PostgreSQL container resource.
WithInitFiles(source string) PostgresServerResource
methodWithPasswordbuilder
Configures the password that the PostgreSQL resource is used.
WithPassword(password ParameterResource) PostgresServerResource
methodWithPgAdminbuilder
Adds a pgAdmin 4 administration and development platform for PostgreSQL to the application model.
WithPgAdmin(options ...*WithPgAdminOptions) PostgresServerResource
methodWithPgWebbuilder
Adds an administration and development platform for PostgreSQL to the application model using pgweb.
WithPgWeb(options ...*WithPgWebOptions) PostgresServerResource
methodWithReplbuilder
Adds a REPL command that opens an authenticated PostgreSQL shell in the dashboard terminal dock.
WithRepl() PostgresServerResource
methodWithUserNamebuilder
Configures the user name that the PostgreSQL resource is used.
WithUserName(userName ParameterResource) PostgresServerResource