Skip to content

Commit

Permalink
Merge pull request #1610 from dotnet/main
Browse files Browse the repository at this point in the history
✅ Merge `main` into `live`
  • Loading branch information
dotnet-policy-service[bot] authored Sep 7, 2024
2 parents fa4be0d + c23b845 commit 929e618
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/database/includes/postgresql-pgadmin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
When adding PostgreSQL resources to the `builder` with the `AddPostgres` method, you can chain calls to `WithPgAdmin` to add the [**dpage/pgadmin4**](https://www.pgadmin.org/) container. This container is a cross-platform client for PostgreSQL databases, that serves a web-based admin dashboard. Consider the following example:

```csharp
var postgres = builder.AddPostgres("postgres")
.WithPgAdmin();

var postgresdb = postgres.AddDatabase("postgresdb");

var exampleProject = builder.AddProject<Projects.ExampleProject>()
.WithReference(postgresdb);
```
2 changes: 2 additions & 0 deletions docs/database/postgresql-entity-framework-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ var myService = builder.AddProject<Projects.MyService>()

[!INCLUDE [postgresql-pgweb](includes/postgresql-pgweb.md)]

[!INCLUDE [postgresql-pgadmin](includes/postgresql-pgadmin.md)]

[!INCLUDE [postgresql-flexible-server](includes/postgresql-flexible-server.md)]

## Configuration
Expand Down
2 changes: 2 additions & 0 deletions docs/database/postgresql-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ var exampleProject = builder.AddProject<Projects.ExampleProject>()

[!INCLUDE [postgresql-pgweb](includes/postgresql-pgweb.md)]

[!INCLUDE [postgresql-pgadmin](includes/postgresql-pgadmin.md)]

[!INCLUDE [postgresql-flexible-server](includes/postgresql-flexible-server.md)]

## Configuration
Expand Down

0 comments on commit 929e618

Please sign in to comment.