From c23b8456324bb36b399793749226e9ad560ce9be Mon Sep 17 00:00:00 2001 From: Meysam Mahmoudi Date: Fri, 6 Sep 2024 17:42:34 +0330 Subject: [PATCH] Add PgAdmin in postgresql integration (#1603) * Add PgAdmin in postgresql integration Add simple document for PgAdmin section in postgresql integration * Add PgAdmin in postgresql-ef integration --- docs/database/includes/postgresql-pgadmin.md | 11 +++++++++++ .../postgresql-entity-framework-integration.md | 2 ++ docs/database/postgresql-integration.md | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 docs/database/includes/postgresql-pgadmin.md diff --git a/docs/database/includes/postgresql-pgadmin.md b/docs/database/includes/postgresql-pgadmin.md new file mode 100644 index 0000000000..09fcf1ac26 --- /dev/null +++ b/docs/database/includes/postgresql-pgadmin.md @@ -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() + .WithReference(postgresdb); +``` diff --git a/docs/database/postgresql-entity-framework-integration.md b/docs/database/postgresql-entity-framework-integration.md index d21a2353f9..cb761e529f 100644 --- a/docs/database/postgresql-entity-framework-integration.md +++ b/docs/database/postgresql-entity-framework-integration.md @@ -78,6 +78,8 @@ var myService = builder.AddProject() [!INCLUDE [postgresql-pgweb](includes/postgresql-pgweb.md)] +[!INCLUDE [postgresql-pgadmin](includes/postgresql-pgadmin.md)] + [!INCLUDE [postgresql-flexible-server](includes/postgresql-flexible-server.md)] ## Configuration diff --git a/docs/database/postgresql-integration.md b/docs/database/postgresql-integration.md index 9473d1d23d..7bfd6537f9 100644 --- a/docs/database/postgresql-integration.md +++ b/docs/database/postgresql-integration.md @@ -64,6 +64,8 @@ var exampleProject = builder.AddProject() [!INCLUDE [postgresql-pgweb](includes/postgresql-pgweb.md)] +[!INCLUDE [postgresql-pgadmin](includes/postgresql-pgadmin.md)] + [!INCLUDE [postgresql-flexible-server](includes/postgresql-flexible-server.md)] ## Configuration