windmill icon indicating copy to clipboard operation
windmill copied to clipboard

feature: dynamically set source of database studio

Open ImSingee opened this issue 1 year ago • 2 comments

I want to change the database source with a select control dynamically.

image image

Both databases have nearly the same schema (just for two different environments), so I want to be able to change database sources easily via a select control. All other settings should remain the same.

ImSingee avatar May 23 '24 19:05 ImSingee

Hi,

You can have two Database Studios in a conditional tab component, and control which tab is displayed with the select:

https://www.windmill.dev/docs/apps/app_configuration_settings/conditional_tabs#component-controls

fatonramadani avatar May 24 '24 09:05 fatonramadani

@fatonramadani Thanks for your recommendation! That's just what I'm doing now. But since my dev and prod environments are likely the same, I have to sync the two settings manually. And that's a bit tedious. And the state gets even worse since I have tens of tables and I also have more than two environments.

ImSingee avatar May 24 '24 18:05 ImSingee