sosedoff / pgweb

Cross-platform client for PostgreSQL databases
https://sosedoff.github.io/pgweb
MIT License
8.63k stars 732 forks source link

Quick database switch #125

Closed sosedoff closed 7 years ago

sosedoff commented 8 years ago

Add ability to switch between available databases via some sort of dropdown. This is super useful when doing local dev and having to switch between different browser tabs or even pgweb sessions. This should not be very tricky to implement since database connection object saves the full connection url, so maybe there's need to expose another endpoint like /api/switchdb to handle this. One of the reasons for to have a new endpoint is when api cant return the full connection string for security reasons while running in multi-session mode. New feature needs to have support for bow regular and ssh connections.

akarki15 commented 8 years ago

agreed. i have to constantly go back to the login screen and change the database name to switch

akarki15 commented 8 years ago

i can look into adding this feature

sosedoff commented 7 years ago

Implemented in master. UI is not superb, but it does the job. UI will be improved in the next releases.