igorkasyanchuk / rails_db

Rails Database Viewer and SQL Query Runner
https://www.railsjazz.com/
MIT License
1.46k stars 109 forks source link

Add Role Support #124

Closed nitsujri closed 1 year ago

nitsujri commented 3 years ago

This PR allows specifying a Database Role. Primary use case being a read replica for view only.

Rails 6.1 brought in connection handling which makes this super easy.

This was built quickly so if I missed any areas please let me know. Also, this has no test coverage so happy to take feedback on how to improve/perform that.