Skip to content

Allow/ensure single instance of support containers like DbGate #1258

@hades200082

Description

@hades200082

Related to an existing integration?

Yes

Existing integration

Most of the database ones at least

Overview

Many of the database extensions in this toolkit include helper methods to add DbGate in development to aid viewing database resources.

Postgres, SqlServer, Redis, etc. all have this option.

Adding that option to multiple - say Postgres and Redis - creates multiple instances of DbGate.

It would be cleaner and a better DX if it were smart enough to merge the configurations into a single instance.

I'm sure there are other examples of this too.

Usage example

var postgres = builder.AddPostgres("postgres")
    .WithDbGate()
var redis = builder.AddRedis("redis")
    .WithDbGate();

It should recognise that it has two things to link DbGate to and manage it as a single DbGate instance

Breaking change?

I'm not sure

Alternatives

None that I can think of

Additional context

No response

Help us help you

No, just wanted to propose this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions