Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

Aspire Community Toolkit PostgreSQL hosting extensions

Feedback

In this article

Includes:Hosting integration included Hosting integration only —Client integration not included Client integration not included

Note

This integration is part of theAspire Community Toolkit andisn't officially supported by the Aspire team.

In this article, you learn about the Aspire Community Toolkit PostgreSQL hosting extensions package which provides extra functionality to the AspirePostgreSQL hosting package.

This package provides the following features:

Hosting integration

To get started with the Aspire Community Toolkit PostgreSQL hosting extensions, install the📦 CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions NuGet package in the AppHost project.

dotnet add package CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions

For more information, seedotnet add package orManage package dependencies in .NET applications.

Example usage

To add the DbGate management UI to your PostgreSQL resource, call theWithDbGate method on thePostgresServerResource instance.

var postgresServer = builder.AddPostgreSQL("PostgreSQL")    .WithDbGate();

To add the Adminer management UI to your PostgreSQL resource, call theWithAdminer method on thePostgresServerResource instance.

var postgresServer = builder.AddPostgreSQL("PostgreSQL")    .WithAdminer();

This will add a new resource to the AppHost which will be available from the Aspire dashboard.

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?