Is there a way to create/configure a database connection at runtime, using a visual interface? Is there a readily available component that does that?

Eg. using something like the control panel Data Sources, but within the application itself