Skip to content

Add marinalia options for connection spec#62

Merged
arthurnn merged 4 commits intobasecamp:masterfrom
viraptor:connection-spec
Jul 20, 2017
Merged

Add marinalia options for connection spec#62
arthurnn merged 4 commits intobasecamp:masterfrom
viraptor:connection-spec

Conversation

@viraptor
Copy link
Copy Markdown
Contributor

@viraptor viraptor commented Jul 4, 2017

Add :db_host, :socket, :database marginalia for getting information out
of the currently used pool spec. This makes it easier to debug things
like per-model connection pools and switching connections at runtime.

viraptor added 2 commits July 4, 2017 14:33
Add :db_host, :socket, :database marginalia for getting information out
of the currently used pool spec. This makes it easier to debug things
like per-model connection pools and switching connections at runtime.
@viraptor
Copy link
Copy Markdown
Contributor Author

viraptor commented Jul 4, 2017

cc @jacobbednarz

@viraptor
Copy link
Copy Markdown
Contributor Author

viraptor commented Jul 4, 2017

Rails 3 doesn't seem to have connection pools. I'll update to handle that soon.

@viraptor
Copy link
Copy Markdown
Contributor Author

viraptor commented Jul 4, 2017

3.2 has been fixed. 3.1 doesn't seem to have a good access to the connection pool from the adapter. I restricted the new comments to only the 3.2 and later versions instead of trying to hack the support back in.

@jacobbednarz
Copy link
Copy Markdown

That seems sane to me. While Rails 3.1 and 3.2 are EOL, the support of them with this gem appears to still be required.

@arthurnn arthurnn merged commit 215b308 into basecamp:master Jul 20, 2017
@arthurnn
Copy link
Copy Markdown
Collaborator

Looks good to me..
thanks

@viraptor viraptor deleted the connection-spec branch July 20, 2017 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants