Skip to content

Commit

Permalink
Add PgAdmin in postgresql integration (#1603)
Browse files Browse the repository at this point in the history
* Add PgAdmin in postgresql integration

Add simple document for PgAdmin section in postgresql integration

* Add PgAdmin in postgresql-ef integration
  • Loading branch information
meisamdev authored Sep 6, 2024
1 parent 70508a0 commit c23b845
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 c23b845

Please sign in to comment.