Aspire.Hosting.PostgreSQL
Official
📦 Aspire.Hosting.PostgreSQLv13.4.014Functions
5Types
5 types and 17 members
Types
Functions
method
addDatabasebuilderAdds a PostgreSQL database to the application model.
addDatabase(name: string, databaseName?: string): PostgresDatabaseResourcemethod
addPostgresbuilderAdds a PostgreSQL resource to the application model. A container is used for local development.
addPostgres(name: string, userName?: ParameterResource, password?: ParameterResource, port?: number): PostgresServerResourcemethod
withCreationScriptbuilderDefines the SQL script used to create the database.
withCreationScript(script: string): PostgresDatabaseResourcemethod
withDataBindMountbuilderAdds a bind mount for the data folder to a PostgreSQL container resource.
withDataBindMount(source: string, isReadOnly?: boolean): PostgresServerResourcemethod
withDataVolumebuilderAdds a named volume for the data folder to a PostgreSQL container resource.
withDataVolume(name?: string, isReadOnly?: boolean): PostgresServerResourcemethod
withHostPortbuilderConfigures the host port that the PGAdmin resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): PgAdminContainerResourcemethod
withHostPortbuilderConfigures the host port that the pgweb resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): PgWebContainerResourcemethod
withHostPortbuilderConfigures the host port that the PostgreSQL resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): PostgresServerResourcemethod
withInitFilesbuilderCopies init files to a PostgreSQL container resource.
withInitFiles(source: string): PostgresServerResourcemethod
withPasswordbuilderConfigures the password that the PostgreSQL resource is used.
withPassword(password: ParameterResource): PostgresServerResourcemethod
withPgAdminbuilderAdds a pgAdmin 4 administration and development platform for PostgreSQL to the application model.
withPgAdmin(configureContainer?: (obj: PgAdminContainerResource) => Promise<void>, containerName?: string): PostgresServerResourcemethod
withPgWebbuilderAdds an administration and development platform for PostgreSQL to the application model using pgweb.
withPgWeb(configureContainer?: (obj: PgWebContainerResource) => Promise<void>, containerName?: string): PostgresServerResourcemethod
withPostgresMcpbuilderAdds a Postgres MCP server container and configures it to connect to the database represented by `builder`.
withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => Promise<void>, containerName?: string): PostgresDatabaseResourcemethod
withUserNamebuilderConfigures the user name that the PostgreSQL resource is used.
withUserName(userName: ParameterResource): PostgresServerResource