-
Notifications
You must be signed in to change notification settings - Fork 166
Allow/ensure single instance of support containers like DbGate #1258
Copy link
Copy link
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels